From a3995a4694827f94675521c26745b0e7038b2345 Mon Sep 17 00:00:00 2001 From: cTn Date: Mon, 21 Jul 2014 03:48:35 +0200 Subject: [PATCH] lower the "contacting bootloader" timeout from buggy 4s to 1s --- js/stm32.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/stm32.js b/js/stm32.js index 95633489..5b632c23 100644 --- a/js/stm32.js +++ b/js/stm32.js @@ -352,9 +352,15 @@ STM32_protocol.prototype.upload_procedure = function(step) { if (send_counter++ > 3) { // stop retrying, its too late to get any response from MCU + console.log('STM32 - no response from bootloader, disconnecting'); + GUI.log('No reponse from the bootloader, programming: FAILED'); GUI.interval_remove('stm32_initialize_mcu'); + GUI.interval_remove('STM32_timeout'); + + // exit + self.upload_procedure(99); } - }, 200, true); + }, 250, true); break; case 2: // get version of the bootloader and supported commands