From 3b3912a2c992efa8a0b576d5361b1343a18d1ba1 Mon Sep 17 00:00:00 2001 From: Hijae Song Date: Sat, 10 Aug 2024 23:33:39 +0900 Subject: [PATCH] Fix M5stickC Plus2 backlight blinking when inactivity timeout --- lib/M5ez/src/M5ez.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/M5ez/src/M5ez.cpp b/lib/M5ez/src/M5ez.cpp index 0562f8f..dda788c 100644 --- a/lib/M5ez/src/M5ez.cpp +++ b/lib/M5ez/src/M5ez.cpp @@ -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())