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:
parent
95665ded0d
commit
67be78325f
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue