Revert removal of selectedBoard as used within stm32.js

10.9-maintenance
blckmn 2022-11-06 15:09:59 +11:00
parent 07dda5dda5
commit 956158ec12
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ const firmware_flasher = {
targets: null, targets: null,
releaseLoader: new ReleaseLoader('https://build.betaflight.com'), releaseLoader: new ReleaseLoader('https://build.betaflight.com'),
localFirmwareLoaded: false, localFirmwareLoaded: false,
selectedBoard: undefined,
boardNeedsVerification: false, boardNeedsVerification: false,
intel_hex: undefined, // standard intel hex in string format intel_hex: undefined, // standard intel hex in string format
parsed_hex: undefined, // parsed raw hex in array format parsed_hex: undefined, // parsed raw hex in array format
@ -20,6 +21,7 @@ firmware_flasher.initialize = function (callback) {
GUI.active_tab = 'firmware_flasher'; GUI.active_tab = 'firmware_flasher';
} }
self.selectedBoard = undefined;
self.localFirmwareLoaded = false; self.localFirmwareLoaded = false;
self.isConfigLocal = false; self.isConfigLocal = false;
self.intel_hex = undefined; self.intel_hex = undefined;
@ -379,6 +381,7 @@ firmware_flasher.initialize = function (callback) {
SessionStorage.set({'selected_board': target}); SessionStorage.set({'selected_board': target});
} }
self.selectedBoard = target;
console.log('board changed to', target); console.log('board changed to', target);
self.flashingMessage(i18n.getMessage('firmwareFlasherLoadFirmwareFile'), self.FLASH_MESSAGE_TYPES.NEUTRAL) self.flashingMessage(i18n.getMessage('firmwareFlasherLoadFirmwareFile'), self.FLASH_MESSAGE_TYPES.NEUTRAL)