1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 13:55:18 +03:00

lower the "contacting bootloader" timeout from buggy 4s to 1s

This commit is contained in:
cTn 2014-07-21 03:48:35 +02:00 committed by Dominic Clifton
parent c1ab10c0c8
commit a3995a4694

View file

@ -352,9 +352,15 @@ STM32_protocol.prototype.upload_procedure = function(step) {
if (send_counter++ > 3) { if (send_counter++ > 3) {
// stop retrying, its too late to get any response from MCU // 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: <strong style="color: red">FAILED</strong>');
GUI.interval_remove('stm32_initialize_mcu'); GUI.interval_remove('stm32_initialize_mcu');
GUI.interval_remove('STM32_timeout');
// exit
self.upload_procedure(99);
} }
}, 200, true); }, 250, true);
break; break;
case 2: case 2:
// get version of the bootloader and supported commands // get version of the bootloader and supported commands