projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
955c494
)
调整自动关机电量
author
xue
<2144439972@qq.com>
Wed, 17 Dec 2025 06:43:42 +0000
(14:43 +0800)
committer
xue
<2144439972@qq.com>
Wed, 17 Dec 2025 06:43:42 +0000
(14:43 +0800)
code/sdk/zhihui/services/battery/service/battery_service.cpp
patch
|
blob
|
history
diff --git
a/code/sdk/zhihui/services/battery/service/battery_service.cpp
b/code/sdk/zhihui/services/battery/service/battery_service.cpp
index
e3871d5
..
05561f4
100644
(file)
--- a/
code/sdk/zhihui/services/battery/service/battery_service.cpp
+++ b/
code/sdk/zhihui/services/battery/service/battery_service.cpp
@@
-96,7
+96,11
@@
static unsigned long g_app_queue = 0xFFFFFFFF;
#define BATTERY_CMD_FIRST_CHECK 0x15
#define BATTERY_LOWPOWER_ALARM_POWERLEVEL 10
+#ifdef BOARD_LEINIAO
+#define BATTERY_LOWPOWER_ALARM_SHUTDOWNLEVEL 2
+#else
#define BATTERY_LOWPOWER_ALARM_SHUTDOWNLEVEL 5
+#endif
#define BATTERY_DISABLE_CHARGE_HI_TEMP_VALUE (50.0f) //停止充电温度
#define BATTERY_VOLTAGE_DEBOUNCE 2