From 5d972bed5c6f627bb6bf3422d70090175ff88f9b Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Wed, 25 Sep 2024 20:53:54 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96OTA=E4=BC=A0=E8=BE=93=E8=BF=87?= =?utf8?q?=E7=A8=8B=E4=B8=AD=E5=88=B7=E6=96=B0=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?utf8?q?=E4=BB=A3=E7=A0=81#725=E5=BE=85=E6=B5=8B=E8=AF=95=E6=98=AF?= =?utf8?q?=E5=90=A6=E4=B8=8D=E5=86=8D=E5=A4=8D=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../msg_center/src/notify/transmitting.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp index e614e0213..3e18da354 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/transmitting.cpp @@ -158,10 +158,21 @@ namespace OHOS } static uint8_t timer_falg_low_power=5; + static uint8_t test_flag=0; + + static void OTATimerCallBackProc(int data) + { + #if 0 + updatasider->SetValue(test_flag++); + #else + updatasider->SetValue(get_OTA_recv_value()); + #endif + updatasider->Invalidate(); + } + void OTATimerCallBack(int data) { - updatasider->SetValue(get_OTA_recv_value()); - RootView::GetInstance()->Invalidate(); + GraphicService::GetInstance()->PostGraphicEvent(std::bind(OTATimerCallBackProc, data)); } void dialtimerCallBack(int data) -- 2.17.1