From 48180c79e33e6c973dede9a128ea5a6bb3dd45c5 Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 7 Nov 2022 21:50:11 +0000 Subject: [PATCH] =?UTF-8?q?Mache=20Kommentar=20f=C3=BCr=20die=20innere=20B?= =?UTF-8?q?edingung,=20damit=20diese=20nicht=20unbeabsichtigt=20irgendwann?= =?UTF-8?q?=20verschwindet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/switch.js b/switch.js index 941906e..79bcfe3 100644 --- a/switch.js +++ b/switch.js @@ -19,7 +19,7 @@ function runLoop() { { method: "POST", url: CONFIG.pollingUrl, body: '{"801":{"170":null}}', timeout: 10 }, function (res, error_code, error_msg, ud) { print("errors-http-post:", error_code, error_msg); - if (error_code === 0) { + if (error_code === 0) { // do this so that during timeout no crash let parsedBody = JSON.parse(res.body); let production = parsedBody["801"]["170"]["101"]; let consumption = parsedBody["801"]["170"]["110"];