From dffe111ede5e6793794741be5b058f053f9da73f Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Thu, 20 Jun 2024 22:02:22 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=97=AE?= =?utf8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleService.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 40fd0ee5c..998ee66fa 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleService.c @@ -176,7 +176,7 @@ static void svr_ble_adv_data_set(int adv_id) // (void)sprintf_s(watchName, sizeof(watchName), "%s",BLE_DEFAULT_NAME); int watch_name_len = strlen(watchName); int cmp_len = watch_name_len>ble_name_len?ble_name_len:watch_name_len; - if (strncmp(ble_name,watchName,cmp_len) != 0 ) + if (strncmp((char*)ble_name,watchName,cmp_len) != 0 ) { ret = bluetooth_set_local_name((unsigned char*)watchName, strlen((char*)watchName) + 1); if (ret == false) { -- 2.17.1