diff --git a/src/js/protocols/stm32usbdfu.js b/src/js/protocols/stm32usbdfu.js index 0be780a7..0e6d9829 100644 --- a/src/js/protocols/stm32usbdfu.js +++ b/src/js/protocols/stm32usbdfu.js @@ -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);