From 72b5e20cca4d736b5ae41af49e432ff43c96cdb7 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Fri, 27 Dec 2024 15:52:38 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0bleread=E6=8C=87=E4=BB=A4?= =?utf8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleService.c | 5 +++-- code/sdk/drivers/peripheral/utils/custom_save_runtime.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) 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 68bec9967..83881d330 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -412,7 +412,7 @@ void svr_ble_adv_factory_test_start_param(void) } -static uint8_t ble_adv_init_falg=100; +static int8_t ble_adv_init_falg=100; static osTimerId_t ble_adv_timer=NULL; @@ -1707,8 +1707,9 @@ static void svr_ble_bt_gatts_req_read_cb(uint8_t server_id, uint16_t conn_id, ga gatts_ntf_ind.value_len=20; // read_cb_para->need_rsp=0; + uapi_save_runtime_log(RUNTIME_LOG_BLE_APP_READ); gatts_notify_indicate(server_id,conn_id,&gatts_ntf_ind); -} + } } diff --git a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h index 35ac22a3c..6fe865f1d 100644 --- a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h +++ b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h @@ -63,6 +63,8 @@ extern "C" RUNTIME_LOG_BR_CONNECT_A2DP_HEADSET, // 0112 连接耳机 RUNTIME_LOG_BR_DISCONNECT_A2DP_HEADSET, // 0113 断开耳机 + + RUNTIME_LOG_BLE_APP_READ, // ble——read // 电话 RUNTIME_LOG_PHONE_MIN = 0x0200, RUNTIME_LOG_PHONE_HFP_ACTIVE, // 0201 HFP电话接听 -- 2.17.1