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