Improvement of setBrightness

This commit is contained in:
miguepollo
2023-11-22 19:18:39 +01:00
committed by GitHub
parent 0528c49f11
commit d13bfb0953

View File

@@ -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
}