1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 06:15:13 +03:00

Further work and preparation.

Placed dataflash status bar in the header but can’t figure out how to
trigger a readout on connect in serial_backend.js. Some help?
This commit is contained in:
skaman82 2015-10-22 18:03:17 +02:00
parent 10f7cdd1b0
commit b0b8cc00d7
6 changed files with 60 additions and 61 deletions

View file

@ -59,7 +59,7 @@ TABS.dataflash.initialize = function (callback) {
display: 'block'
});
$(".tab-dataflash .dataflash-used div").text('Used space ' + formatFilesize(DATAFLASH.usedSize));
$(".tab-dataflash .dataflash-used div").text('Used space: ' + formatFilesize(DATAFLASH.usedSize));
} else {
$(".tab-dataflash .dataflash-used").css({
display: 'none'
@ -71,7 +71,7 @@ TABS.dataflash.initialize = function (callback) {
width: ((DATAFLASH.totalSize - DATAFLASH.usedSize) / DATAFLASH.totalSize * 100) + "%",
display: 'block'
});
$(".tab-dataflash .dataflash-free div").text('Free space ' + formatFilesize(DATAFLASH.totalSize - DATAFLASH.usedSize));
$(".tab-dataflash .dataflash-free div").text('Free space: ' + formatFilesize(DATAFLASH.totalSize - DATAFLASH.usedSize));
} else {
$(".tab-dataflash .dataflash-free").css({
display: 'none'