From 26803515f51092ad1c89621ae675bf20625612b2 Mon Sep 17 00:00:00 2001 From: cTn Date: Thu, 14 Nov 2013 19:16:33 +0100 Subject: [PATCH] bugfixes & polishing --- js/stm32.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/stm32.js b/js/stm32.js index e7943331..dea6d70e 100644 --- a/js/stm32.js +++ b/js/stm32.js @@ -82,6 +82,10 @@ STM32_protocol.prototype.connect = function() { self.initialize(); } }); + } else { + console.log('There was an error that happened during "connection-close" procedure'); + + GUI.connect_lock = false; } }); }, 100); @@ -479,9 +483,7 @@ STM32_protocol.prototype.upload_procedure = function(step) { connectionId = -1; // reset connection id } else { // Something went wrong - if (connectionId > 0) { - console.log('There was an error that happened during "connection-close" procedure'); - } + console.log('There was an error that happened during "connection-close" procedure'); } // unlocking connect button