[BLE Client] Fix Deadlock when calling writeValue after registerForNotify

Fixes: https://github.com/espressif/arduino-esp32/issues/4952
This commit is contained in:
Me No Dev 2021-03-17 18:46:55 +02:00 committed by GitHub
parent a451c9ef0d
commit 9a0762ad2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,6 +246,10 @@ void BLERemoteCharacteristic::gattClientEventHandler(esp_gattc_cb_event_t event,
}
break;
case ESP_GATTC_DISCONNECT_EVT:
m_semaphoreWriteCharEvt.give(1);
break;
default:
break;
} // End switch