From 49c6f1ed4b4b16ca011181394f2d50e4d7ca8157 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Fri, 27 Sep 2024 15:58:07 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E6=94=AF=E4=BB=98=E5=AE=9D?= =?utf8?q?=E5=B9=BF=E6=92=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/alipay/src/AlipayPresenter.cpp | 2 +- .../wearable/service/ble_service/bleservice/bleService.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/alipay/src/AlipayPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/alipay/src/AlipayPresenter.cpp index d6e727e2c..b8f08ac87 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/alipay/src/AlipayPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/alipay/src/AlipayPresenter.cpp @@ -58,7 +58,7 @@ void AlipayPresenter::OnStart() WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "AlipayPresenter OnStart"); Presenter::OnStart(); /**启动alipay蓝牙服务*/ - // start_alipay_ble_service(); + start_alipay_ble_service(); /* -------------------------------- 设置支付宝界面常亮 ------------------------------- */ alipayMode_->AlipayScreenControl(true); /* -------------------------------------------------------------------------- */ diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c index f00e31764..43e2da330 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -1420,13 +1420,10 @@ void ble_avd_mode_change(uint8_t mode) if(exit_alipay_gui == 1)//如果进了绑定二维码界面就走这里 { exit_alipay_gui = 0; + printf("ble_advd_start!!!!!!!!! %d %d Bleconnect:%d\r\n",ble_adv_falg,AdverFlag,Bleconnect); - if(ble_adv_falg == 0 && AdverFlag == true)//关闭ble 并且没有广播不需要广播数据了 - { - adv_ok = 1; - svr_ble_adv_start(); - } - if(Bleconnect == GAP_BLE_STATE_CONNECTED && adv_ok != 1)//退出识图还在连接app需要关闭广播数据 + + if(Bleconnect == GAP_BLE_STATE_CONNECTED )//退出识图还在连接app需要关闭广播数据 { svr_ble_adv_stop(); } -- 2.17.1