From: hcj <1224667075@qq.com> Date: Fri, 27 Dec 2024 07:52:38 +0000 (+0800) Subject: 增加bleread指令记录 X-Git-Tag: v1.3.113-repair_tp~39^2~15 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=72b5e20cca4d736b5ae41af49e432ff43c96cdb7;p=mirrors%2FFD230.git 增加bleread指令记录 --- 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电话接听