mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-11-02 15:11:40 +01:00
Fix issue with semaphores (#2974)
This commit is contained in:
@@ -400,7 +400,6 @@ std::string BLERemoteCharacteristic::readValue() {
|
||||
// Check to see that we are connected.
|
||||
if (!getRemoteService()->getClient()->isConnected()) {
|
||||
log_e("Disconnected");
|
||||
// throw BLEDisconnectedException(); TODO:: think about error reporting mechanism
|
||||
return std::string();
|
||||
}
|
||||
|
||||
@@ -552,7 +551,7 @@ void BLERemoteCharacteristic::writeValue(uint8_t* data, size_t length, bool resp
|
||||
// Check to see that we are connected.
|
||||
if (!getRemoteService()->getClient()->isConnected()) {
|
||||
log_e("Disconnected");
|
||||
// throw BLEDisconnectedException();
|
||||
return;
|
||||
}
|
||||
|
||||
m_semaphoreWriteCharEvt.take("writeValue");
|
||||
|
||||
Reference in New Issue
Block a user