remove a duplicate instance of of update_dataflash_global function

Removing the one that is less advanced, as its not actually used.
10.7.0-preview
Kyle K 2019-10-25 20:53:53 +00:00
parent fcb78e2b8f
commit d6bb3833f4
1 changed files with 0 additions and 29 deletions

View File

@ -571,35 +571,6 @@ function have_sensor(sensors_detected, sensor_code) {
return false;
}
function update_dataflash_global() {
var supportsDataflash = DATAFLASH.totalSize > 0;
if (supportsDataflash){
$(".noflash_global").css({
display: 'none'
});
$(".dataflash-contents_global").css({
display: 'block'
});
$(".dataflash-free_global").css({
width: (100-(DATAFLASH.totalSize - DATAFLASH.usedSize) / DATAFLASH.totalSize * 100) + "%",
display: 'block'
});
$(".dataflash-free_global div").text('Dataflash: free ' + formatFilesize(DATAFLASH.totalSize - DATAFLASH.usedSize));
} else {
$(".noflash_global").css({
display: 'block'
});
$(".dataflash-contents_global").css({
display: 'none'
});
}
}
function startLiveDataRefreshTimer() {
// live data refresh
GUI.timeout_add('data_refresh', function () { update_live_status(); }, 100);