From a89dfc064ad916f8d4a824db3c868c17dafbc01c Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Thu, 21 Dec 2023 11:31:08 +0800 Subject: [PATCH] =?utf8?q?=E5=8E=BB=E9=99=A4=E4=B8=BB=E8=A1=A8=E7=9B=98=20?= =?utf8?q?xts=E7=8A=B6=E6=80=81=E6=B5=8B=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/clock/include/MainClockView.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/sdk/application/wearable/nativeapp/nativeui/clock/include/MainClockView.h b/code/sdk/application/wearable/nativeapp/nativeui/clock/include/MainClockView.h index a6769495b..be06cb297 100755 --- a/code/sdk/application/wearable/nativeapp/nativeui/clock/include/MainClockView.h +++ b/code/sdk/application/wearable/nativeapp/nativeui/clock/include/MainClockView.h @@ -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; -- 2.17.1