mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-17 13:25:22 +03:00
Some code styling and cleanup.
This commit is contained in:
parent
593cfb7b54
commit
7ca376926a
1 changed files with 25 additions and 37 deletions
|
@ -254,10 +254,6 @@ function onConnect() {
|
|||
|
||||
MSP.send_message(MSP_codes.MSP_STATUS, false, false);
|
||||
|
||||
// TEST code for dataflash status in header
|
||||
//MSP.send_message(MSP_codes.MSP_DATAFLASH_SUMMARY, false, update_html());
|
||||
|
||||
|
||||
MSP.send_message(MSP_codes.MSP_DATAFLASH_SUMMARY, false, false);
|
||||
|
||||
var sensor_state = $('#sensor-status');
|
||||
|
@ -269,13 +265,6 @@ function onConnect() {
|
|||
var dataflash = $('#dataflash_wrapper_global');
|
||||
dataflash.show();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// testing dataflash change END
|
||||
|
||||
|
||||
}
|
||||
|
||||
function onClosed(result) {
|
||||
|
@ -458,8 +447,8 @@ function update_dataflash_global() {
|
|||
}
|
||||
|
||||
var supportsDataflash = DATAFLASH.totalSize > 0;
|
||||
if (supportsDataflash){
|
||||
|
||||
if (supportsDataflash){
|
||||
$(".noflash_global").css({
|
||||
display: 'none'
|
||||
});
|
||||
|
@ -482,5 +471,4 @@ function update_dataflash_global() {
|
|||
display: 'none'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue