1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 04:45:20 +03:00

Use strict operator when checking for flash pages to erase.

This commit is contained in:
Hydra 2019-08-11 12:35:23 +02:00
parent 5cd4b2ff0e
commit 4ff2a116e3

View file

@ -796,7 +796,7 @@ STM32DFU_protocol.prototype.upload_procedure = function (step) {
}
}
if (erase_pages.length == 0) {
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);