1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +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

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