Small change
This commit is contained in:
parent
0001ff4726
commit
0032d44ec1
|
@ -35,7 +35,7 @@ void loopHandler() {
|
||||||
|
|
||||||
int valueKnobBTN = debouncerKnobBTN.read();
|
int valueKnobBTN = debouncerKnobBTN.read();
|
||||||
if (valueKnobBTN != lastKnobBTN) {
|
if (valueKnobBTN != lastKnobBTN) {
|
||||||
Homie.getLogger() << "KnobBTN is now " << (valueKnobBTN ? "open" : "close") << endl;
|
Homie.getLogger() << "KnobButton is now " << (valueKnobBTN ? "open" : "close") << endl;
|
||||||
knobNode.setProperty("btnknob").send(valueKnobBTN ? "false" : "true");
|
knobNode.setProperty("btnknob").send(valueKnobBTN ? "false" : "true");
|
||||||
lastKnobBTN = valueKnobBTN;
|
lastKnobBTN = valueKnobBTN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue