From 82847e41dd2e39ecc99c6d10a3acd13b3b6e58df Mon Sep 17 00:00:00 2001 From: yhf Date: Sun, 19 Jul 2026 17:29:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(chrg=5Fnorth):=20=E8=B0=83=E4=BD=8E?= =?UTF-8?q?=E4=BD=8E=E5=8E=8B=E5=92=8C=E6=97=A0=E7=94=B5=E6=B5=81=E6=95=85?= =?UTF-8?q?=E9=9A=9C=E7=9A=84=E8=A7=A6=E5=8F=91=E8=AE=A1=E6=95=B0=E9=98=88?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将低压故障触发计数从5次改为3次,无电流故障触发计数也从5次改为3次,加快异常状态的响应速度 --- apps/chrg/applications/thread/chrg_north.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/chrg/applications/thread/chrg_north.c b/apps/chrg/applications/thread/chrg_north.c index 6e7178f..7f65fee 100644 --- a/apps/chrg/applications/thread/chrg_north.c +++ b/apps/chrg/applications/thread/chrg_north.c @@ -228,7 +228,7 @@ void chrg_sink_parse(rt_uint8_t *frame_data, eIDX_SOU_CH idx, // volt_low[idx]++; /* Treat low voltage as a fault only after voltage was once valid. */ if (volt_set_ok[idx] == 1) { - if (++volt_low[idx] >= 5) { + if (++volt_low[idx] >= 3) { volt_set_ok[idx] = 0; no_curr[idx] = 0; pSW->sink.work_mode = SINK_WORK_LOW; @@ -245,7 +245,7 @@ void chrg_sink_parse(rt_uint8_t *frame_data, eIDX_SOU_CH idx, pSW->sink.work_mode = SINK_WORK_RUNING; /* Voltage is normal but current is still zero: retry from WAIT. */ if (pSW->Now_current <= 200) { - if (++no_curr[idx] >= 5) { + if (++no_curr[idx] >= 3) { pSW->sink.work_mode = SINK_WORK_WAIT; no_curr[idx] = 0; }