[BLE Client] Fix Deadlock when calling writeValue after registerForNotify
Fixes: https://github.com/espressif/arduino-esp32/issues/4952
This commit is contained in:
parent
a451c9ef0d
commit
9a0762ad2a
@ -246,6 +246,10 @@ void BLERemoteCharacteristic::gattClientEventHandler(esp_gattc_cb_event_t event,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ESP_GATTC_DISCONNECT_EVT:
|
||||||
|
m_semaphoreWriteCharEvt.give(1);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
} // End switch
|
} // End switch
|
||||||
|
Loading…
Reference in New Issue
Block a user