From affc9ad5327994fd48e21645ac109c3e6f02bc23 Mon Sep 17 00:00:00 2001 From: wangfq Date: Tue, 23 Jun 2026 15:56:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BA=BF=E5=9C=88=E6=96=AD=E5=BC=80?= =?UTF-8?q?=E6=9C=9F=E9=97=B4=E7=BB=BF=E7=81=AF=E7=81=AD,=20=E9=BB=84?= =?UTF-8?q?=E7=81=AF=E5=BF=AB=E9=97=AA=E8=B4=9F=E8=B4=A3=E6=95=85=E9=9A=9C?= =?UTF-8?q?=E6=8C=87=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utilities/at32f421_freertos_demo/src/TaskLoop.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utilities/at32f421_freertos_demo/src/TaskLoop.c b/utilities/at32f421_freertos_demo/src/TaskLoop.c index b5d3ecb..e022ccc 100644 --- a/utilities/at32f421_freertos_demo/src/TaskLoop.c +++ b/utilities/at32f421_freertos_demo/src/TaskLoop.c @@ -201,6 +201,13 @@ void poll_green_led(void) static uint16_t _slow_tick = 0; + /*--- 线圈断开中 → 灭(黄灯快闪负责故障指示) ---*/ + if (g_disconnect_active) { + LEDA_OFF; + _slow_tick = 0; + return; + } + /*--- 自检阶段:慢闪 ---*/ if (loop1_INI_LOOP || !g_loop_power_up_state || !g_loop_stable) { _slow_tick++;