修改错误的调用屏蔽 1783/1 1783/head 1784/target/1
authorCaisking <Casiking@zhihuishixun.com>
Fri, 23 May 2025 09:52:09 +0000 (17:52 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Fri, 23 May 2025 09:52:09 +0000 (17:52 +0800)
code/sdk/application/wearable/fd230/nativeapp/nativeui/watchQRcode/src/WatchQRCodeView.cpp

index 1524722..8e4f207 100644 (file)
@@ -64,12 +64,12 @@ namespace OHOS
     extern "C"
     {
 
-// #include "build_version.h"
+#include "build_version.h"
 // #include "battery_hal.h"
 //         extern uint8_t battery_get_voltage(float *voltage);
-//         const char *get_version_string(void);
-        extern uint8_t battery_get_voltage(float *voltage){ return 0;}
         const char *get_version_string(void);
+        // extern uint8_t battery_get_voltage(float *voltage){ return 0;}
+        // const char *get_version_string(void);
 
     }
 
@@ -189,8 +189,9 @@ namespace OHOS
         // 电量:
         float voltage = 0.0F;
         uint8_t value = 0;
-        value = battery_get_voltage(&voltage);
-        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "battery_get_voltage = %d", value);
+        // value = battery_get_voltage(&voltage);
+        // WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "battery_get_voltage = %d", value);
+        value = 0;
 
         // 版本号:
         std::string temp = get_version_string();