From bcb6e2161d1ef33f5996092f0646881e80e46749 Mon Sep 17 00:00:00 2001 From: creatvty <58488011+creatvty@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:10:08 +0200 Subject: [PATCH] fix mode 6 and 7 wantedPowerDisplay check --- components/screenLib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/screenLib.js b/components/screenLib.js index f6d452c0..5450e24e 100644 --- a/components/screenLib.js +++ b/components/screenLib.js @@ -304,7 +304,7 @@ class SCREEN { else { let responsePy = stdout.trim(); log(`Response PY -- Check State: ${responsePy}`); - if (responsePy === 1) actual = true; + if (responsePy === "1") actual = true; this.resultDisplay(actual, wanted); } }); @@ -320,7 +320,7 @@ class SCREEN { else { let responsePy = stdout.trim(); log(`Response PY -- Check State (reverse): ${responsePy}`); - if (responsePy === 0) actual = true; + if (responsePy === "0") actual = true; this.resultDisplay(actual, wanted); } });