From d02e36f4ff562e5e18a6533b19e9082cb0e08c66 Mon Sep 17 00:00:00 2001 From: wangmengyang Date: Wed, 31 Jan 2018 11:39:04 +0800 Subject: [PATCH] component/bt: fix type error for ble_spp_client when SUPPORT_HEARTBEAT is enabled --- examples/bluetooth/ble_spp_client/main/spp_client_demo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0