From 8b7bf1b137603c1b7da1054d549c9a014829fee0 Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 4 Sep 2023 10:00:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=9B=BB=E6=B1=A0=E8=AE=80=E5=8F=96=E5=84=AA?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtos/code/driver/na51089/source/mcu/sf_battery.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rtos/code/driver/na51089/source/mcu/sf_battery.c b/rtos/code/driver/na51089/source/mcu/sf_battery.c index 55cafa9f1..82e38f313 100755 --- a/rtos/code/driver/na51089/source/mcu/sf_battery.c +++ b/rtos/code/driver/na51089/source/mcu/sf_battery.c @@ -351,7 +351,7 @@ UINT32 sf_battery_adc_value_get_once(void) if(puiPara->BatteryLogSwitch) printf("DC ADC Value:%lu After Convert:%lu(%lu.%luV)\n",batAdc,dcVoltageVal,dcVoltageVal/10,dcVoltageVal%10); } - if(batAdc <= 0) + if(batAdc <= 100) { getDcFlg--; } @@ -369,7 +369,7 @@ UINT32 sf_battery_adc_value_get_once(void) if(puiPara->BatteryLogSwitch) printf("Li ADC Value:%lu After Convert:%lu(%lu.%luV)\n",batAdc,liPolymerVoltageVal,liPolymerVoltageVal/10,liPolymerVoltageVal%10); } - if(batAdc <= 0) + if(batAdc <= 100) { getLiBatFlg--; } @@ -388,7 +388,7 @@ UINT32 sf_battery_adc_value_get_once(void) printf("Bat ADC Value:%lu After Convert:%lu(%lu.%luV)\n",batAdc,batVoltageVal,batVoltageVal/10,batVoltageVal%10); } - if(batAdc <= 0) + if(batAdc <= 100) { getBatFlg--; } @@ -950,7 +950,7 @@ void sf_battery_thread_init(void) vos_flag_create(&FLG_ID_SF_BSTTERY, NULL, "FLG_ID_SF_BSTTERY"); /*thread creat*/ - s_handle_batt = vos_task_create(sf_battery_check_thread, NULL, "sf_battery_check_thread", 25, 2048); + s_handle_batt = vos_task_create(sf_battery_check_thread, NULL, "sf_battery_check_thread", 18, 2048); vos_task_resume(s_handle_batt); printf("[%s:%d] e\n", __FUNCTION__, __LINE__); }