离线表盘:电量获取返回为ture
authorCaisking <3449750381@qq.com>
Thu, 19 Sep 2024 09:56:15 +0000 (17:56 +0800)
committerCaisking <3449750381@qq.com>
Thu, 19 Sep 2024 09:56:15 +0000 (17:56 +0800)
code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelPower.cpp
code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelPowerStandby.cpp

index a6ef377..cb0035a 100644 (file)
@@ -38,7 +38,7 @@ namespace OHOS
         {
             UpdatePower();
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdatePower %d", power_);
-            return false;
+            return true;
         }
         float voltage = 0.0F;
         power_ = battery_get_voltage(&voltage);
index 3a031a4..5051cae 100644 (file)
@@ -25,7 +25,7 @@ namespace OHOS
         {
             UpdatePowerStanby();
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "UpdatePower %d", PowerStanby_);
-            return false;
+            return true;
         }
 
         float voltage = 0.0F;