From 047c98fcc5fc0af9e0ab94865893f738c37281d1 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:27:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Power_Pico/User/GUI/screens/ui_PPSPage.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Power_Pico/User/GUI/screens/ui_PPSPage.c b/Power_Pico/User/GUI/screens/ui_PPSPage.c index eec36fb..c692a54 100644 --- a/Power_Pico/User/GUI/screens/ui_PPSPage.c +++ b/Power_Pico/User/GUI/screens/ui_PPSPage.c @@ -230,6 +230,16 @@ void ui_pps_page_key_handler(void* key_event) } } + +/////////////////////// para_initialize ////////////////////// +static void _para_init(void) { + current_btn_index = 0; + pps_voltage_index = 0; + pps_panel_index = 1; + cur_voltage = 5.0; + cur_current = 1.0; +} + /////////////////////// ui_initialize ////////////////////// void ui_PPSPage_screen_init(void) @@ -604,7 +614,7 @@ void ui_PPSPage_screen_init(void) btns[12] = ui_BtnSwitch; btns[13] = ui_BtnClose; // - current_btn_index = 0; + _para_init(); } void ui_PPSPage_screen_destroy(void)