We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2df709b + d235899 commit 7657c5fCopy full SHA for 7657c5f
1 file changed
lib/LEDStatus/LEDStatus.cpp
@@ -27,7 +27,7 @@ void LEDStatus::changePin(int8_t ledPin) {
27
inverse = false;
28
}
29
30
- if ((ledPin != _ledPin) && (inverse != _inverse)) {
+ if ((ledPin != _ledPin) || (inverse != _inverse)) {
31
// make sure old pin is off
32
digitalWrite(_ledPin, _pinState(LOW));
33
_ledPin = ledPin;
0 commit comments