Skip to content

Commit

Permalink
fix mode 6 and 7 wantedPowerDisplay check -- @creatvty
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsounet authored Apr 10, 2024
2 parents 906a849 + bcb6e21 commit 007c2e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/screenLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand All @@ -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);
}
});
Expand Down

0 comments on commit 007c2e3

Please sign in to comment.