From dc9cf1f0cd18f418aba0de6ed30f181f133294e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=90=83=E6=B2=B9=E7=82=B8=E9=B8=A1?= <1425962791@qq.com> Date: Sat, 6 Dec 2025 17:17:34 +0800 Subject: [PATCH] fix bug --- Power_Pico/User/GUI/ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Power_Pico/User/GUI/ui.c b/Power_Pico/User/GUI/ui.c index 123fb8f..221c945 100644 --- a/Power_Pico/User/GUI/ui.c +++ b/Power_Pico/User/GUI/ui.c @@ -55,7 +55,7 @@ Page_t pages[] = { static void main_timer_cb(lv_timer_t * timer) { // 1s 刷新一次全屏,防止有时候不知什么原因的LCD刷新错误(需要后续找到问题从根本解决) - ui_full_screen_refresh(ui_HomeScreen); + ui_full_screen_refresh(lv_screen_active()); } ////////////////////////// Animation ////////////////////// @@ -89,7 +89,7 @@ void ui_init(void) ui_set_display_rotation(ui_get_display_rotation()); // main timer (you can add someting to do in the timer_cb if needed) - lv_timer_t * ui_MainTimer = lv_timer_create(main_timer_cb, 1000, NULL); + lv_timer_t * ui_MainTimer = lv_timer_create(main_timer_cb, 2000, NULL); // start up, just load one time only ui_StartPage_screen_init();