Skip to content

Commit d8dc76d

Browse files
committed
#2 minor fix to backlight code to correct logic before release
1 parent b18113a commit d8dc76d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LiquidCrystalIO.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ void LiquidCrystal::setBacklight(uint8_t state) {
9999
#ifndef __MBED__
100100
if (_backlightMode == BACKLIGHT_PWM) {
101101
analogWrite(_backlightPin, state);
102+
return;
102103
}
103104
#endif
104105
if (_backlightMode == BACKLIGHT_INVERTED) state = !state;

0 commit comments

Comments
 (0)