show raw firmware size in bytes
parent
e9879ea545
commit
1e89ffd808
|
@ -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>
|
||||
|
|
|
@ -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>');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue