From: SnickerSun Date: Thu, 20 Jun 2024 14:02:22 +0000 (+0800) Subject: 修复编译问题 X-Git-Tag: release_V1.2.70_20241020_135402~948^2~26 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F339%2F1;p=mirrors%2FFD230.git 修复编译问题 --- 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) {