From 8e17e5a59be6ffec1bbe49df6806ac866a554b5d Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Wed, 23 Feb 2022 00:48:50 +0100 Subject: [PATCH] Change timeout for MacOS --- src/js/protocols/stm32.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/protocols/stm32.js b/src/js/protocols/stm32.js index 28655eb2..7f2c31bb 100644 --- a/src/js/protocols/stm32.js +++ b/src/js/protocols/stm32.js @@ -116,7 +116,8 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback) if (disconnectionResult) { // delay to allow board to boot in bootloader mode // required to detect if a DFU device appears - setTimeout(startFlashing, 1000); + // MacOs seems to need about 5 seconds delay + setTimeout(startFlashing, GUI.operating_system === 'MacOS' ? 5000 : 1000); } else { GUI.connect_lock = false; }