From a5a5281865e42fc0e8cbe249531eadbf25043dc9 Mon Sep 17 00:00:00 2001 From: payton Date: Fri, 21 Jul 2023 22:04:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=94=B5=E5=8E=8B=E6=B5=8B=E8=AF=95=E6=97=B6?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=BD=8E=E7=94=B5=E5=85=B3=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/sf_app/code/source/battery/sf_battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/application/source/sf_app/code/source/battery/sf_battery.c b/code/application/source/sf_app/code/source/battery/sf_battery.c index 17daa9148..549b62082 100644 --- a/code/application/source/sf_app/code/source/battery/sf_battery.c +++ b/code/application/source/sf_app/code/source/battery/sf_battery.c @@ -887,7 +887,7 @@ void sf_battery_level_polling(void) { battEmpty = 1; printf("[%s:%d]power off because low battery\n", __FUNCTION__, __LINE__); - #if SF_IQ_TEST != ENABLE + #if (SF_IQ_TEST != ENABLE) && (SF_BATTERY_TEST != ENABLE) sf_set_power_off_flag(1); SF_MESSAGE_BUF_S stMessageBuf = {0}; stMessageBuf.cmdId = CMD_POWEROFF; @@ -924,7 +924,7 @@ void* sf_battery_check_thread(void *arg) if(sf_is_battery_low(1, 0) == TRUE) { printf("[%s:%d]power off because low battery\n", __FUNCTION__, __LINE__); - #if SF_IQ_TEST != ENABLE + #if (SF_IQ_TEST != ENABLE) && (SF_BATTERY_TEST != ENABLE) sf_set_power_off_flag(1); SF_MESSAGE_BUF_S stMessageBuf = {0}; stMessageBuf.cmdId = CMD_POWEROFF;