Skip to content

Commit

Permalink
Fix M5stickC Plus2 backlight blinking when inactivity timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
hijae committed Aug 10, 2024
1 parent 35e227f commit 3b3912a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/M5ez/src/M5ez.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ uint16_t ezBacklight::loop(void *private_data) {
if (!_backlight_off && _inactivity) {
if (millis() > _last_activity + 30000 * _inactivity) {
_backlight_off = true;
M5.Display.setBrightness(64);
M5.Display.setBrightness(0);
changeCpuPower(true);
while (true) {
if (M5.BtnA.wasClicked() || M5.BtnB.wasClicked())
Expand Down

0 comments on commit 3b3912a

Please sign in to comment.