Skip to content

Commit 95665de

Browse files
committed
Move resetState to stm32.js
1 parent 5b836e0 commit 95665de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/protocols/stm32.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback)
162162
GUI.log(i18n.getMessage('deviceRebooting_romBootloader'));
163163
console.log('no flash bootloader detected');
164164
rebootMode = 1; // MSP_REBOOT_BOOTLOADER_ROM;
165-
}
165+
}
166+
FC.resetState();
166167

167168
var buffer = [];
168169
buffer.push8(rebootMode);

src/js/tabs/firmware_flasher.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,6 @@ TABS.firmware_flasher.initialize = function (callback) {
10761076

10771077
function startFlashing() {
10781078
exitDfuElement.addClass('disabled');
1079-
FC.resetState();
10801079
if (!GUI.connect_lock) { // button disabled while flashing is in progress
10811080
if (self.parsed_hex) {
10821081
try {

0 commit comments

Comments
 (0)