Skip to content

Commit

Permalink
Set the backlight to minimum on reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Oct 27, 2023
1 parent b12244e commit 1740583
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions driver/backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ bool backlightOn;

void BACKLIGHT_TurnOn(void)
{
if (gEeprom.BACKLIGHT_TIME == 0)
if (gEeprom.BACKLIGHT_TIME != 0) {
backlightOn = true;
BACKLIGHT_SetBrightness(gEeprom.BACKLIGHT_MAX);
}
else {
BACKLIGHT_TurnOff();
return;

backlightOn = true;

// turn the backlight ON
BACKLIGHT_SetBrightness(gEeprom.BACKLIGHT_MAX);
}

switch (gEeprom.BACKLIGHT_TIME)
{
Expand Down

0 comments on commit 1740583

Please sign in to comment.