解决编译错误
authorxue <2144439972@qq.com>
Sun, 2 Nov 2025 05:19:38 +0000 (13:19 +0800)
committerxue <2144439972@qq.com>
Sun, 2 Nov 2025 05:19:38 +0000 (13:19 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h
code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp

index d555ffe..5618ccf 100644 (file)
@@ -60,7 +60,7 @@ namespace OHOS
         
         // 网络状态检查
         bool HasNetwork() const;
-        bool IsBatterySufficient() const;
+        bool IsBatterySufficient();
         bool IsMemorySufficient() const;
 
         // 夜间更新状态管理
index 3f3236d..d83bd0a 100644 (file)
@@ -139,7 +139,7 @@ namespace OHOS
         return (networkStatus == 1);
     }
 
-    bool OtaModel::IsBatterySufficient() const
+    bool OtaModel::IsBatterySufficient() 
     {
         if(IsBatteryCharging() == true)//充电时,不检查电量
         {