kopia lustrzana https://github.com/OpenRTX/OpenRTX
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/50pull/63/head
rodzic
4eb4e43cbe
commit
5605797816
|
@ -88,6 +88,14 @@ void state_init()
|
||||||
|
|
||||||
void state_terminate()
|
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);
|
nvm_writeSettingsAndVfo(&state.settings, &state.channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue