fix: revert Zorro default contrast, apply contrast as soon as read (#3831)

* fix: revert Zorro default contrast

* fix: set contrast as soon as radio data is read
This commit is contained in:
3djc
2023-07-23 11:10:20 +10:00
committed by GitHub
parent d955685e1c
commit 0cefb7089a
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -1450,6 +1450,10 @@ void opentxInit()
bool radioSettingsValid = storageReadRadioSettings(false);
(void)radioSettingsValid;
#if defined(GUI) && !defined(COLORLCD)
lcdSetContrast();
#endif
#endif
BACKLIGHT_ENABLE(); // we start the backlight during the startup animation
@@ -1588,7 +1592,7 @@ void opentxInit()
}
#endif
#if defined(GUI) && !defined(COLORLCD)
#if defined(GUI) && !defined(COLORLCD) && !defined(STARTUP_ANIMATION)
lcdSetContrast();
#endif
+1 -1
View File
@@ -410,7 +410,7 @@ void ledBlue();
#if defined(OLED_SCREEN)
#define LCD_CONTRAST_DEFAULT 255 // full brightness
#elif defined(RADIO_TX12) || defined(RADIO_TX12MK2) || defined(RADIO_ZORRO) || defined(RADIO_BOXER)
#elif defined(RADIO_TX12) || defined(RADIO_TX12MK2) || defined(RADIO_BOXER)
#define LCD_CONTRAST_DEFAULT 20
#elif defined(RADIO_TPRO) || defined(RADIO_FAMILY_JUMPER_T12) || defined(RADIO_TPRO) || defined(RADIO_COMMANDO8)
#define LCD_CONTRAST_DEFAULT 25