From a0c442064f3c57a2d3e68f6eb86941ef18cf2814 Mon Sep 17 00:00:00 2001 From: cTn Date: Thu, 14 Nov 2013 07:39:39 +0100 Subject: [PATCH] bugfixes --- tabs/firmware_flasher.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tabs/firmware_flasher.js b/tabs/firmware_flasher.js index fbf73c64..904cb253 100644 --- a/tabs/firmware_flasher.js +++ b/tabs/firmware_flasher.js @@ -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); - - STM32.connect(); - } else { - STM32.GUI_status('Firmware not loaded'); + 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('Firmware not loaded'); + } } }); });