Procházet zdrojové kódy

example/ble_throughput fix the throughput clinet crash bug when open the CONFIG_GATTC_WRITE_THROUTHPUT option

Geng Yu Chao před 6 roky
rodič
revize
8c980c11aa

+ 1 - 1
examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/example_ble_client_throughput.c

@@ -573,7 +573,7 @@ void app_main()
 
     xTaskCreate(&throughput_client_task, "throughput_client_task", 4096, NULL, 10, NULL);
 #if (CONFIG_GATTC_WRITE_THROUGHPUT)
-    gattc_semaphore = xSemaphoreCreateMutex();
+    gattc_semaphore = xSemaphoreCreateBinary();
     if (!gattc_semaphore) {
         ESP_LOGE(GATTC_TAG, "%s, init fail, the gattc semaphore create fail.", __func__);
         return;