From: hcj <1224667075@qq.com> Date: Thu, 24 Oct 2024 08:05:45 +0000 (+0800) Subject: 低电量报警修改 X-Git-Tag: fd230_release_V1.3.102~191^2~1^2~4 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=a9b5ee8ee63ffcb7d8f88646cb4a5496b763f908;p=mirrors%2FFD230.git 低电量报警修改 --- diff --git a/code/sdk/application/battery/service/battery_service.cpp b/code/sdk/application/battery/service/battery_service.cpp index 58584736e..821d5ff63 100644 --- 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