From d13bfb0953bdfaafda0fef0ecb375ae780827e43 Mon Sep 17 00:00:00 2001 From: miguepollo <127879645+miguepollo@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:18:39 +0100 Subject: [PATCH] Improvement of setBrightness --- src/LilyGoLib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LilyGoLib.cpp b/src/LilyGoLib.cpp index b59241e5..fd1b8772 100644 --- a/src/LilyGoLib.cpp +++ b/src/LilyGoLib.cpp @@ -293,7 +293,7 @@ void LilyGoLib::setBrightness(uint8_t level) writecommand(0x10); //display sleep setPowerMode(PMODE_MONITOR); } - if (!brightness) { + if (!brightness && level != 0) { enableALDO2(); writecommand(0x11); //display wakeup }