mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 09:45:28 +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
|
@ -163,6 +163,7 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback)
|
||||||
console.log('no flash bootloader detected');
|
console.log('no flash bootloader detected');
|
||||||
rebootMode = 1; // MSP_REBOOT_BOOTLOADER_ROM;
|
rebootMode = 1; // MSP_REBOOT_BOOTLOADER_ROM;
|
||||||
}
|
}
|
||||||
|
FC.resetState();
|
||||||
|
|
||||||
var buffer = [];
|
var buffer = [];
|
||||||
buffer.push8(rebootMode);
|
buffer.push8(rebootMode);
|
||||||
|
|
|
@ -1076,7 +1076,6 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
|
|
||||||
function startFlashing() {
|
function startFlashing() {
|
||||||
exitDfuElement.addClass('disabled');
|
exitDfuElement.addClass('disabled');
|
||||||
FC.resetState();
|
|
||||||
if (!GUI.connect_lock) { // button disabled while flashing is in progress
|
if (!GUI.connect_lock) { // button disabled while flashing is in progress
|
||||||
if (self.parsed_hex) {
|
if (self.parsed_hex) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue