Improve BackLt (35/63)

This commit is contained in:
Armel FAUVEAU
2024-04-05 06:28:51 +02:00
parent 623a86b298
commit 4cd00a0a97
8 changed files with 11 additions and 18 deletions

View File

@@ -110,13 +110,10 @@ void BACKLIGHT_TurnOn(void)
switch (gEeprom.BACKLIGHT_TIME) {
default:
case 1 ... 11: // 5 sec * value
case 1 ... 60: // 5 sec * value
gBacklightCountdown_500ms = 1 + (gEeprom.BACKLIGHT_TIME * 5) * 2;
break;
case 12 ... 16: // 1 min $ value
gBacklightCountdown_500ms = 1 + ((gEeprom.BACKLIGHT_TIME - 11) * 60) * 2;
break;
case 17: // always on
case 61: // always on
gBacklightCountdown_500ms = 0;
break;
}