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:
ebeef44
)
低电量报警修改
author
hcj
<1224667075@qq.com>
Thu, 24 Oct 2024 08:05:45 +0000
(16:05 +0800)
committer
hcj
<1224667075@qq.com>
Thu, 24 Oct 2024 08:05:45 +0000
(16:05 +0800)
code/sdk/application/battery/service/battery_service.cpp
patch
|
blob
|
history
diff --git
a/code/sdk/application/battery/service/battery_service.cpp
b/code/sdk/application/battery/service/battery_service.cpp
index
5858473
..
821d5ff
100644
(file)
--- a/
code/sdk/application/battery/service/battery_service.cpp
+++ b/
code/sdk/application/battery/service/battery_service.cpp
@@
-291,15
+291,17
@@
static void battery_check_chargement(void)
* report alarm shutdown event at 5%
* pay attention to : debounce
*/
- if (percent
>0 && percent <= BATTERY_LOWPOWER_ALARM_POWERLEVEL
)
+ if (percent
<= BATTERY_LOWPOWER_ALARM_SHUTDOWNLEVEL
)
{
- low_power_play_toUI(
0
);
+ low_power_play_toUI(
1
);
- }else if (percent <= BATTERY_LOWPOWER_ALARM_SHUTDOWNLEVEL )
+ }
+ else if (percent >0 && percent <= BATTERY_LOWPOWER_ALARM_POWERLEVEL)
{
- low_power_play_toUI(
1
);
+ low_power_play_toUI(
0
);
}
+
}
#endif