1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-20 14:55:15 +03:00
This commit is contained in:
cTn 2013-11-14 07:39:39 +01:00
parent 18d59665b4
commit a0c442064f

View file

@ -63,12 +63,14 @@ function tab_initialize_firmware_flasher() {
});
$('a.flash_firmware').click(function() {
if (raw_hex != false) {
STM32.hex_to_flash = raw_hex.slice(0);
if (!GUI.connect_lock) { // button disabled while flashing is in progress
if (raw_hex != false) {
STM32.hex_to_flash = raw_hex.slice(0);
STM32.connect();
} else {
STM32.GUI_status('<span style="color: red">Firmware not loaded</span>');
STM32.connect();
} else {
STM32.GUI_status('<span style="color: red">Firmware not loaded</span>');
}
}
});
});