From: dxy <1731678236qq.com> Date: Thu, 16 Oct 2025 06:59:48 +0000 (+0800) Subject: 编译出错的问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=c9925f830d18f0bc127588cfc9200901e174febf;p=mirrors%2F7PIN_V1_5_Jl_SDK.git 编译出错的问题 --- diff --git a/2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c b/2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c index fafa592..dca613d 100644 --- a/2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c +++ b/2.code/1.sdk/apps/BK_app/BK_drive/bk_uart.c @@ -1396,7 +1396,7 @@ int parse_uart_data(char *json_string) if (cJSON_IsObject(data)) { // 从data对象中获取"switch_bt_state"字段 cJSON *switch_ble_js = cJSON_GetObjectItemCaseSensitive(data, "switch_ble_state"); - if (cJSON_IsString(switch_bt_state) && (switch_ble_js->valuestring != NULL)) { + if (cJSON_IsString(switch_ble_js) && (switch_ble_js->valuestring != NULL)) { printf("蓝牙广播状态: %s\n", switch_ble_js->valuestring); if (strcmp(switch_ble_js->valuestring, "1") == 0) { get_ble_switch=1;