From e0ec0bdfd46eb33aa35abbae3bc8a77c5948c248 Mon Sep 17 00:00:00 2001 From: tp1de Date: Thu, 15 Feb 2024 14:44:06 +0100 Subject: [PATCH] eslint --- lib/custom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/custom.js b/lib/custom.js index 481ed45..c8cf8ef 100644 --- a/lib/custom.js +++ b/lib/custom.js @@ -373,7 +373,7 @@ function switchProgram_to_telegram(spa) { const hex = ((h * 60 + m) / 15).toString(16); data += hex + " "; c = c + 1; - + if (i < spa.length - 1) { if (spa[i].dayOfWeek != spa[i + 1].dayOfWeek && c < 6) { for (let ii = 0; ii < 6 - c; ii++) { data += "03 FF "; } @@ -383,8 +383,8 @@ function switchProgram_to_telegram(spa) { else for (let ii = 0; ii < 6 - c; ii++) { data += "03 FF "; } } } catch (e) { - adapter.log.error("switchProgram has wrong definition"); - adapter.log.error(e+":"+data); + adapter.log.error("switchProgram has wrong definition"); + adapter.log.error(e+":"+data); data= ""; } return data;