Skip to content

Commit 9a0762a

Browse files
authored
[BLE Client] Fix Deadlock when calling writeValue after registerForNotify
Fixes: espressif#4952
1 parent a451c9e commit 9a0762a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/BLE/src/BLERemoteCharacteristic.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ void BLERemoteCharacteristic::gattClientEventHandler(esp_gattc_cb_event_t event,
246246
}
247247
break;
248248

249+
case ESP_GATTC_DISCONNECT_EVT:
250+
m_semaphoreWriteCharEvt.give(1);
251+
break;
252+
249253
default:
250254
break;
251255
} // End switch

0 commit comments

Comments
 (0)