mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2026-04-27 14:30:33 +00:00
Reset to watch face on display blank timeout
Navigate tileview to the watch face tile before blanking so the time is always visible when the display wakes. Without this, the display would wake to whatever screen was last active.
This commit is contained in:
parent
76b39728f3
commit
2831ac0885
1 changed files with 4 additions and 0 deletions
|
|
@ -62,6 +62,10 @@
|
|||
|
||||
if (display_blanking_enabled && !display_blanked) {
|
||||
if (millis() - last_unblank_event > display_blanking_timeout) {
|
||||
// Return to watch face before blanking so it's ready on wake
|
||||
if (gui_tileview && gui_tile_watch) {
|
||||
lv_tileview_set_tile(gui_tileview, gui_tile_watch, LV_ANIM_OFF);
|
||||
}
|
||||
co5300_set_brightness(0);
|
||||
co5300_sleep();
|
||||
xl9555_set(EXPANDS_DISP_EN, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue