From: Caisking Date: Thu, 22 May 2025 09:34:43 +0000 (+0800) Subject: 增加绑定的日志打印 X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~284^2~6 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=2556127982ba46a99df56a65579864afe1d67a21;p=mirrors%2FFD230.git 增加绑定的日志打印 --- diff --git a/code/sdk/zhihui/services/ble_service/bleservice/bleEvent.c b/code/sdk/zhihui/services/ble_service/bleservice/bleEvent.c index 314b3988b..3e79d56ed 100644 --- a/code/sdk/zhihui/services/ble_service/bleservice/bleEvent.c +++ b/code/sdk/zhihui/services/ble_service/bleservice/bleEvent.c @@ -834,11 +834,10 @@ void comfirmPaire(uint8_t flag) if(flag == 1) { first_bond = 1; - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP," gap_ble_pair \r\n"); if(get_ble_pair()) { - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP," gap_ble_pair \r\n"); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP," gap_ble_pair \r\n"); bd_addr_t addr={0}; get_phone_addr(&addr,g_ble_conn_id); @@ -846,7 +845,7 @@ void comfirmPaire(uint8_t flag) errcode_t code = gap_ble_pair_remote_device(&addr); if(code!=ERRCODE_SUCC) { - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"gap_ble_pair_remote_device fail %X\r\n",code); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"gap_ble_pair_remote_device fail %X\r\n",code); } } @@ -1266,7 +1265,7 @@ void sendBindInfor(uint8_t *data) if(phone_type==1) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"IOS\r\n"); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"IOS\r\n"); ble_set_pair(1); errcode_t ret = gap_ble_set_ctkd_enable(true); @@ -1644,8 +1643,8 @@ static uint8_t jsonCheck_time(uint8_t *buf)//json 格式解析 tmp.tm_sec = second; time_t timestamp2 = __tm_to_secs(&tmp); int16_t timezone = (timestamp2-timestamp)/60/15; - WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"timezone in quarters %d\n",timezone); - // uapi_set_timezone(timezone); //要在uaip_sntp_set_time_utc 之前执行才有效 + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"timezone in quarters %d\n",timezone); + uapi_set_timezone(timezone); //要在uaip_sntp_set_time_utc 之前执行才有效 /********/ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"time: %d\n",timestamp );