Skip to content

Commit

Permalink
Fix egzumer#272: Backlight time doubled
Browse files Browse the repository at this point in the history
  • Loading branch information
JuantAldea committed Dec 15, 2023
1 parent 206dca9 commit 81a9efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ void BACKLIGHT_TurnOn(void)
case 1: // 5 sec
case 2: // 10 sec
case 3: // 20 sec
gBacklightCountdown_500ms = 1 + (2 << (gEeprom.BACKLIGHT_TIME - 1)) * 10;
gBacklightCountdown_500ms = 1 + (2 << (gEeprom.BACKLIGHT_TIME - 1)) * 5;
break;
case 4: // 1 min
case 5: // 2 min
case 6: // 4 min
gBacklightCountdown_500ms = 1 + (2 << (gEeprom.BACKLIGHT_TIME - 4)) * 120;
gBacklightCountdown_500ms = 1 + (2 << (gEeprom.BACKLIGHT_TIME - 4)) * 60;
break;
case 7: // always on
gBacklightCountdown_500ms = 0;
Expand Down

0 comments on commit 81a9efd

Please sign in to comment.