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:
@@ -1450,6 +1450,10 @@ void opentxInit()
|
|||||||
|
|
||||||
bool radioSettingsValid = storageReadRadioSettings(false);
|
bool radioSettingsValid = storageReadRadioSettings(false);
|
||||||
(void)radioSettingsValid;
|
(void)radioSettingsValid;
|
||||||
|
|
||||||
|
#if defined(GUI) && !defined(COLORLCD)
|
||||||
|
lcdSetContrast();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BACKLIGHT_ENABLE(); // we start the backlight during the startup animation
|
BACKLIGHT_ENABLE(); // we start the backlight during the startup animation
|
||||||
@@ -1588,7 +1592,7 @@ void opentxInit()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(GUI) && !defined(COLORLCD)
|
#if defined(GUI) && !defined(COLORLCD) && !defined(STARTUP_ANIMATION)
|
||||||
lcdSetContrast();
|
lcdSetContrast();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ void ledBlue();
|
|||||||
|
|
||||||
#if defined(OLED_SCREEN)
|
#if defined(OLED_SCREEN)
|
||||||
#define LCD_CONTRAST_DEFAULT 255 // full brightness
|
#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
|
#define LCD_CONTRAST_DEFAULT 20
|
||||||
#elif defined(RADIO_TPRO) || defined(RADIO_FAMILY_JUMPER_T12) || defined(RADIO_TPRO) || defined(RADIO_COMMANDO8)
|
#elif defined(RADIO_TPRO) || defined(RADIO_FAMILY_JUMPER_T12) || defined(RADIO_TPRO) || defined(RADIO_COMMANDO8)
|
||||||
#define LCD_CONTRAST_DEFAULT 25
|
#define LCD_CONTRAST_DEFAULT 25
|
||||||
|
|||||||
Reference in New Issue
Block a user