From 5d5961e679f57f53962adc35d2d9412fc36c9e0b 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: Tue, 2 Dec 2025 19:45:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Power_Pico/User/GUI/common/lv_lib_pm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Power_Pico/User/GUI/common/lv_lib_pm.c b/Power_Pico/User/GUI/common/lv_lib_pm.c index 57f790c..c090cbe 100644 --- a/Power_Pico/User/GUI/common/lv_lib_pm.c +++ b/Power_Pico/User/GUI/common/lv_lib_pm.c @@ -36,7 +36,7 @@ void lv_lib_pm_register(Page_t* page) { } /** - * 切换到下一个页面(循环) + * 切换到下一个页面(循环链表) */ void lv_lib_pm_next(void) { if (PageManager.count == 0) return; @@ -57,14 +57,13 @@ void lv_lib_pm_next(void) { } /** - * 切换到上一个页面(循环) + * 切换到上一个页面(循环链表) */ void lv_lib_pm_prev(void) { if (PageManager.count == 0) return; Page_t* current = PageManager.pages[PageManager.current_index]; - uint8_t prev_index = (PageManager.current_index == 0) ? - PageManager.count - 1 : PageManager.current_index - 1; + uint8_t prev_index = (PageManager.current_index == 0) ? PageManager.count - 1 : PageManager.current_index - 1; Page_t* prev = PageManager.pages[prev_index]; if (prev->init) prev->init();