From: 1624952103 Date: Fri, 30 Jan 2026 06:00:47 +0000 (+0800) Subject: 增加高低温关机,修复老化死机,降低GPS优先级,更新电池温度曲线(补) X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F3161%2F1;p=mirrors%2FFD230.git 增加高低温关机,修复老化死机,降低GPS优先级,更新电池温度曲线(补) --- diff --git a/code/sdk/zhihui/services/battery/service/battery_service.cpp b/code/sdk/zhihui/services/battery/service/battery_service.cpp index 990d94aca..371c6ea3d 100644 --- a/code/sdk/zhihui/services/battery/service/battery_service.cpp +++ b/code/sdk/zhihui/services/battery/service/battery_service.cpp @@ -440,7 +440,7 @@ static void battery_check_chargement(void) * 否则按正常流程充电 */ - if(bat_temp >= BATTERY_DISABLE_CHARGE_HI_TEMP_VALUE || BATTERY_DISABLE_CHARGE_LOW_TEMP_VALUE <= 0) + if(bat_temp >= BATTERY_DISABLE_CHARGE_HI_TEMP_VALUE || bat_temp <= 0) { PRINT("battery temp is too high : %.2f >= %.2f, disable charge!\n",bat_temp,BATTERY_DISABLE_CHARGE_HI_TEMP_VALUE); disable_charge();