1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Move resetState to stm32.js

This commit is contained in:
Asizon 2020-12-08 09:33:38 +01:00
parent 5b836e0e68
commit 95665ded0d
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,8 @@ 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();
var buffer = [];
buffer.push8(rebootMode);

View file

@ -1076,7 +1076,6 @@ TABS.firmware_flasher.initialize = function (callback) {
function startFlashing() {
exitDfuElement.addClass('disabled');
FC.resetState();
if (!GUI.connect_lock) { // button disabled while flashing is in progress
if (self.parsed_hex) {
try {