From 16316ff61be903555ab7c1f40aa40785d0b1224e Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期日, 08 十月 2023 11:41:37 +0800 Subject: [PATCH] V1.39 修复LED不亮问题 --- Src/application/dw_app.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/Src/application/dw_app.c b/Src/application/dw_app.c index 2c58786..b9a358d 100644 --- a/Src/application/dw_app.c +++ b/Src/application/dw_app.c @@ -757,8 +757,13 @@ { id = dwt_readdevid() ; } - g_Resttimer=0; + if(bat_percent>15) + { + LED_TB_ON; + } else { + LED_TR_ON; + } // tag_state=DISCPOLL; switch(tag_state) { @@ -777,4 +782,6 @@ break; } dwt_entersleep(); + LED_TB_OFF; + LED_TR_OFF; } -- Gitblit v1.9.3