usermod rotary - dont register pins if disabled
This commit is contained in:
@@ -272,6 +272,7 @@ public:
|
|||||||
DEBUG_PRINTLN(F("Invalid GPIO pins for Usermod Rotary Encoder (ALT).")); //WLEDMM add debug info
|
DEBUG_PRINTLN(F("Invalid GPIO pins for Usermod Rotary Encoder (ALT).")); //WLEDMM add debug info
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!enabled) return; // WLEDMM don't allocated PINS if disabled
|
||||||
if (!pinManager.allocateMultiplePins(pins, 3, PinOwner::UM_RotaryEncoderUI)) {
|
if (!pinManager.allocateMultiplePins(pins, 3, PinOwner::UM_RotaryEncoderUI)) {
|
||||||
// BUG: configuring this usermod with conflicting pins
|
// BUG: configuring this usermod with conflicting pins
|
||||||
// will cause it to de-allocate pins it does not own
|
// will cause it to de-allocate pins it does not own
|
||||||
|
|||||||
Reference in New Issue
Block a user