support for rotary without push button
Allows pinC = -1
This commit is contained in:
@@ -907,7 +907,7 @@ public:
|
|||||||
pinA = newDTpin;
|
pinA = newDTpin;
|
||||||
pinB = newCLKpin;
|
pinB = newCLKpin;
|
||||||
pinC = newSWpin;
|
pinC = newSWpin;
|
||||||
if (pinA<0 || pinB<0 || pinC<0) {
|
if (pinA<0 || pinB<0) { // WLEDMM support for rotary without pushbutton
|
||||||
enabled = false;
|
enabled = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user