mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-17 10:38:29 +00:00
fix-portapack-backlight-timer-bug
The selected time for backlight off on Options-> Interface was not working ok for most of the selectable time options.
This commit is contained in:
parent
c626d83c3b
commit
a445bfa444
@ -242,7 +242,7 @@ bool config_login() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t config_backlight_timer() {
|
uint32_t config_backlight_timer() {
|
||||||
const uint32_t timer_seconds[8] = { 0, 5, 15, 60, 300, 600, 600, 600 };
|
const uint32_t timer_seconds[8] = { 0, 5, 15, 30, 60, 180, 300, 600 };
|
||||||
|
|
||||||
return timer_seconds[data->ui_config & 0x00000007UL];
|
return timer_seconds[data->ui_config & 0x00000007UL];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user