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

Display error to user when HEX file is invalid.

In this case, it's invalid if the HEX file doesn't contain any data in
the address range of the chip to flash.
This commit is contained in:
Hydra 2019-08-09 13:15:57 +02:00
parent 2cfc173ee9
commit 5cd4b2ff0e
2 changed files with 4 additions and 0 deletions

View file

@ -798,6 +798,7 @@ STM32DFU_protocol.prototype.upload_procedure = function (step) {
if (erase_pages.length == 0) {
console.log('Aborting, No flash pages to erase');
TABS.firmware_flasher.flashingMessage(i18n.getMessage('stm32InvalidHex'), TABS.firmware_flasher.FLASH_MESSAGE_TYPES.INVALID);
self.upload_procedure(99);
break;
}