Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/betaflight/betaflight-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Haslinghuis <mark@numloq.nl>2022-02-23 02:48:50 +0300
committerMark Haslinghuis <mark@numloq.nl>2022-02-23 02:48:50 +0300
commit8e17e5a59be6ffec1bbe49df6806ac866a554b5d (patch)
tree8b6dd39430cc44900fb00bd50a37dfb8746b02b5
parentf5dab89965595311d5467dd7a9937be6f83b64be (diff)
Change timeout for MacOS
-rw-r--r--src/js/protocols/stm32.js3
1 files changed, 2 insertions, 1 deletions
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;
}