From: wangmengyang Date: Wed, 31 Jan 2018 03:39:04 +0000 (+0800) Subject: component/bt: fix type error for ble_spp_client when SUPPORT_HEARTBEAT is enabled X-Git-Tag: v3.1-beta1~310^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d02e36f4ff562e5e18a6533b19e9082cb0e08c66;p=esp-idf component/bt: fix type error for ble_spp_client when SUPPORT_HEARTBEAT is enabled --- diff --git a/examples/bluetooth/ble_spp_client/main/spp_client_demo.c b/examples/bluetooth/ble_spp_client/main/spp_client_demo.c index 7597ffb2e7..75e8024710 100644 --- a/examples/bluetooth/ble_spp_client/main/spp_client_demo.c +++ b/examples/bluetooth/ble_spp_client/main/spp_client_demo.c @@ -493,7 +493,7 @@ void spp_heart_beat_task(void * arg) spp_conn_id, (db+SPP_IDX_SPP_HEARTBEAT_VAL)->attribute_handle, sizeof(heartbeat_s), - (char *)heartbeat_s, + (uint8_t *)heartbeat_s, ESP_GATT_WRITE_TYPE_RSP, ESP_GATT_AUTH_REQ_NONE); vTaskDelay(5000 / portTICK_PERIOD_MS);