From: xue <2144439972@qq.com> Date: Thu, 11 Dec 2025 03:54:53 +0000 (+0800) Subject: 取消低电量充电可以ota X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=a72779d560d72e1e9e18feff840072642f818cdf;p=mirrors%2FFD230.git 取消低电量充电可以ota --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp index cc5756916..37ea43ad9 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp @@ -157,10 +157,7 @@ namespace OHOS bool OtaModel::IsBatterySufficient() { - if(IsBatteryCharging() == true && OtaModel::GetInstance()->GetOtaStatus() != OTA_UI_STATUS_CAT1_START)//充电时,不检查电量 - { - return true; - } + float voltage = 0.0F; int Batteryvalue = 0; #ifdef SUPPORT_BATTERY_SERVICE