去除主表盘 xts状态测试日志
authorSnickerSun <snickersun@163.com>
Thu, 21 Dec 2023 03:31:08 +0000 (11:31 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 21 Dec 2023 03:31:08 +0000 (11:31 +0800)
code/sdk/application/wearable/nativeapp/nativeui/clock/include/MainClockView.h

index a676949..be06cb2 100755 (executable)
@@ -97,20 +97,20 @@ public:
         float voltage = 0.0F ;
         // battery_get_voltage_by_channel(&voltage,channel);
         uint8_t value = 0 ;
-        uint8_t xts_testing = 0 ;
+        uint8_t xts_test_done = 0 ;
        
         uint32_t RunTime_ = HALTick::GetInstance().GetTime();
        
         #ifdef XTS_SUPPORT
-        xts_testing = is_xts_test_done();
+        xts_test_done = is_xts_test_done();
         #endif
-        if(xts_testing){
-            value = 0;
-            printf("bat check stamp %u xts_testing %u\r\n",RunTime_,xts_testing);
+        if(xts_test_done){
+            value = battery_get_voltage(&voltage);
+            // printf("bat check stamp %u xts_test_done %u\r\n",RunTime_,xts_test_done);
             return ;
         }else{
-            value = battery_get_voltage(&voltage);
-            printf("bat check stamp %u xts_testing %u\r\n",RunTime_,xts_testing);
+            value = 0;
+            // printf("bat check stamp %u xts_test_done %u\r\n",RunTime_,xts_test_done);
         }
         char* progress1ForeImageSrc = nullptr;
         char* progress1BackImageSrc = nullptr;