Never store a brightness level of 0

Enforce a minimum brightness level to prevent booting with a black screen

Related to https://github.com/OpenRTX/OpenRTX/issues/50
pull/63/head
Alessio Caiazza 2021-11-20 00:17:40 +01:00 zatwierdzone przez Niccolò Izzo
rodzic 4eb4e43cbe
commit 5605797816
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -88,6 +88,14 @@ void state_init()
void state_terminate()
{
/*
* Never store a brightness of 0 to avoid booting with a black screen
*/
if(state.settings.brightness == 0)
{
state.settings.brightness = 25;
}
nvm_writeSettingsAndVfo(&state.settings, &state.channel);
}