feat: improved OLED brightness handling (#3773)

This commit is contained in:
3djc
2023-08-12 11:17:50 +02:00
committed by GitHub
parent f1968f9857
commit 3342d21195
7 changed files with 37 additions and 8 deletions
+4
View File
@@ -979,6 +979,10 @@ void lcdSetContrast(bool useDefault)
{
#if defined(BOOT)
lcdSetRefVolt(LCD_CONTRAST_DEFAULT);
#elif defined(OLED_SCREEN)
// Handled by brightness feature
if (useDefault)
lcdSetRefVolt(LCD_CONTRAST_DEFAULT);
#else
lcdSetRefVolt(useDefault ? LCD_CONTRAST_DEFAULT : g_eeGeneral.contrast);
#endif