show raw firmware size in bytes

10.3.x-maintenance
cTn 2013-12-05 23:15:37 +01:00
parent e9879ea545
commit 1e89ffd808
2 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@
<div class="tab-firmware_flasher">
<div class="info">
<strong>Path:</strong><span class="path">empty</span><br />
<strong>Size:</strong><span class="size">0.000 kb</span><br />
<strong>Size:</strong><span class="size">0 bytes</span><br />
<strong>Status:</strong><span class="status">Firmware not loaded</span><br />
<strong>Progress:</strong><progress class="progress" value="0" min="0" max="100"></progress>
</div>

View File

@ -38,7 +38,7 @@ function tab_initialize_firmware_flasher() {
STM32.GUI_status('<span style="color: green">Firmware loaded, ready for flashing</span>');
$('a.flash_firmware').removeClass('locked');
$('span.size').html((parsed_hex.bytes / 1000) + ' kB');
$('span.size').html(parsed_hex.bytes + ' bytes');
} else {
STM32.GUI_status('<span style="color: red">HEX file appears to be corrupted</span>');
}
@ -69,7 +69,7 @@ function tab_initialize_firmware_flasher() {
$('a.flash_firmware').removeClass('locked');
$('span.path').html('Using remote Firmware');
$('span.size').html((parsed_hex.bytes / 1000) + ' kB');
$('span.size').html(parsed_hex.bytes + ' bytes');
} else {
STM32.GUI_status('<span style="color: red">HEX file appears to be corrupted</span>');
}