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:
GlassOnTin 2026-04-07 00:21:53 +01:00
commit 2831ac0885

View file

@ -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);