From 4cd56b19d7610e899d414d7235339ba97b0ed120 Mon Sep 17 00:00:00 2001 From: Geng Yu Chao Date: Fri, 15 Nov 2019 23:55:09 +0800 Subject: [PATCH] example/ble_throughput fix the throughput server crash bug when running with throughput client --- .../throughput_server/main/example_ble_server_throughput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/example_ble_server_throughput.c b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/example_ble_server_throughput.c index b8a8f621c..915ae2ce7 100644 --- a/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/example_ble_server_throughput.c +++ b/examples/bluetooth/bluedroid/ble/ble_throughput/throughput_server/main/example_ble_server_throughput.c @@ -700,7 +700,7 @@ void app_main(void) xTaskCreate(&throughput_server_task, "throughput_server_task", 4048, NULL, 15, NULL); #if (CONFIG_EXAMPLE_GATTS_NOTIFY_THROUGHPUT) - gatts_semaphore = xSemaphoreCreateMutex(); + gatts_semaphore = xSemaphoreCreateBinary(); if (!gatts_semaphore) { ESP_LOGE(GATTS_TAG, "%s, init fail, the gatts semaphore create fail.", __func__); return;