diff --git a/js_src/Printer.js b/js_src/Printer.js index f55fbf1..75e8362 100644 --- a/js_src/Printer.js +++ b/js_src/Printer.js @@ -95,7 +95,7 @@ function Printer() { timeout: this.timeoutTime, success: function(data){ console.log("Printer:preheat response: ",data); - if(data.status == "error") { + if(data.status != "success") { clearTimeout(self.retryPreheatDelay); self.retryPreheatDelay = setTimeout(function() { self.preheat() },self.retryDelay); // retry after delay }