取消低电量充电可以ota
authorxue <2144439972@qq.com>
Thu, 11 Dec 2025 03:54:53 +0000 (11:54 +0800)
committerxue <2144439972@qq.com>
Thu, 11 Dec 2025 03:54:53 +0000 (11:54 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp

index cc57569..37ea43a 100644 (file)
@@ -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