mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
remove a duplicate instance of of update_dataflash_global function
Removing the one that is less advanced, as its not actually used.
This commit is contained in:
parent
fcb78e2b8f
commit
d6bb3833f4
1 changed files with 0 additions and 29 deletions
|
@ -571,35 +571,6 @@ function have_sensor(sensors_detected, sensor_code) {
|
||||||
return false;
|
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() {
|
function startLiveDataRefreshTimer() {
|
||||||
// live data refresh
|
// live data refresh
|
||||||
GUI.timeout_add('data_refresh', function () { update_live_status(); }, 100);
|
GUI.timeout_add('data_refresh', function () { update_live_status(); }, 100);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue