1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 17:25:16 +03:00

Added condition to avoid duplication when is connected

This commit is contained in:
Asizon 2020-12-08 11:12:56 +01:00
parent 95665ded0d
commit 67be78325f

View file

@ -163,7 +163,9 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback)
console.log('no flash bootloader detected');
rebootMode = 1; // MSP_REBOOT_BOOTLOADER_ROM;
}
if (!GUI.connected_to) {
FC.resetState();
}
var buffer = [];
buffer.push8(rebootMode);