mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
example/ble_throughput fix the throughput clinet crash bug when open the CONFIG_GATTC_WRITE_THROUTHPUT option
This commit is contained in:
@@ -573,7 +573,7 @@ void app_main()
|
|||||||
|
|
||||||
xTaskCreate(&throughput_client_task, "throughput_client_task", 4096, NULL, 10, NULL);
|
xTaskCreate(&throughput_client_task, "throughput_client_task", 4096, NULL, 10, NULL);
|
||||||
#if (CONFIG_GATTC_WRITE_THROUGHPUT)
|
#if (CONFIG_GATTC_WRITE_THROUGHPUT)
|
||||||
gattc_semaphore = xSemaphoreCreateMutex();
|
gattc_semaphore = xSemaphoreCreateBinary();
|
||||||
if (!gattc_semaphore) {
|
if (!gattc_semaphore) {
|
||||||
ESP_LOGE(GATTC_TAG, "%s, init fail, the gattc semaphore create fail.", __func__);
|
ESP_LOGE(GATTC_TAG, "%s, init fail, the gattc semaphore create fail.", __func__);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user