From 3f9709b47bfaf9fee8efbcb359cac81b4ae878b6 Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Sun, 2 Nov 2025 13:19:38 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E7=BC=96=E8=AF=91=E9=94=99?= =?utf8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h | 2 +- .../wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h index d555ffe1a..5618ccfea 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h @@ -60,7 +60,7 @@ namespace OHOS // 网络状态检查 bool HasNetwork() const; - bool IsBatterySufficient() const; + bool IsBatterySufficient(); bool IsMemorySufficient() const; // 夜间更新状态管理 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 3f3236dbb..d83bd0ad0 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 @@ -139,7 +139,7 @@ namespace OHOS return (networkStatus == 1); } - bool OtaModel::IsBatterySufficient() const + bool OtaModel::IsBatterySufficient() { if(IsBatteryCharging() == true)//充电时,不检查电量 { -- 2.17.1