mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-05 04:27:40 +00:00
Improve BackLt (35/63)
This commit is contained in:
1 parent
623a86b298
commit
4cd00a0a97
8 files changed
+11
-18
No files matched your search
+2
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user