We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6578c commit cd83499Copy full SHA for cd83499
src/platform/ESP32/nimble/BLEManagerImpl.cpp
@@ -925,7 +925,8 @@ CHIP_ERROR BLEManagerImpl::InitESPBleLayer(void)
925
SuccessOrExit(err);
926
#endif
927
928
- nimble_port_init();
+ err = MapBLEError(nimble_port_init());
929
+ SuccessOrExit(err);
930
931
/* Initialize the NimBLE host configuration. */
932
ble_hs_cfg.reset_cb = bleprph_on_reset;
@@ -973,7 +974,9 @@ CHIP_ERROR BLEManagerImpl::InitESPBleLayer(void)
973
974
void BLEManagerImpl::DeinitESPBleLayer()
975
{
976
VerifyOrReturn(DeinitBLE() == CHIP_NO_ERROR);
977
+#ifdef CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING
978
BLEManagerImpl::ClaimBLEMemory(nullptr, nullptr);
979
+#endif /* CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING */
980
}
981
982
void BLEManagerImpl::ClaimBLEMemory(System::Layer *, void *)
0 commit comments