support for rotary without push button

Allows pinC = -1
This commit is contained in:
Frank
2023-01-01 22:19:25 +01:00
committed by GitHub
parent 79c1d9371f
commit e85c90dc11

View File

@@ -907,7 +907,7 @@ public:
pinA = newDTpin;
pinB = newCLKpin;
pinC = newSWpin;
if (pinA<0 || pinB<0 || pinC<0) {
if (pinA<0 || pinB<0) { // WLEDMM support for rotary without pushbutton
enabled = false;
return true;
}