From a72779d560d72e1e9e18feff840072642f818cdf Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Thu, 11 Dec 2025 11:54:53 +0800 Subject: [PATCH] =?utf8?q?=E5=8F=96=E6=B6=88=E4=BD=8E=E7=94=B5=E9=87=8F?= =?utf8?q?=E5=85=85=E7=94=B5=E5=8F=AF=E4=BB=A5ota?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.17.1