From b0c4b1cf1bc56fac46ebb17be9cef0bff3b7dd2b Mon Sep 17 00:00:00 2001 From: cTn Date: Mon, 27 Jan 2014 00:49:28 +0100 Subject: [PATCH] wider scope --- js/stm32.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/stm32.js b/js/stm32.js index 0b30eca9..258bed49 100644 --- a/js/stm32.js +++ b/js/stm32.js @@ -346,7 +346,7 @@ STM32_protocol.prototype.upload_procedure = function(step) { var send_counter = 0; GUI.interval_add('stm32_initialize_mcu', function() { // 200 ms interval (just in case mcu was already initialized), we need to break the 2 bytes command requirement self.send([0x7F], 1, function(reply) { - if (reply[0] == self.status.ACK || reply[0] == self.status.NACK) { + if (reply[0] == 0x7F || reply[0] == self.status.ACK || reply[0] == self.status.NACK) { GUI.interval_remove('stm32_initialize_mcu'); console.log('STM32 - Serial interface initialized on the MCU side');