Skip to content

Commit

Permalink
address reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp committed Apr 23, 2024
1 parent e10501b commit 7b6d6c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/platform/esp32/common/Esp32AppServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static size_t hex_string_to_binary(const char * hex_string, uint8_t * buf, size_

void Esp32AppServer::DeInitBLEIfCommissioned(void)
{
#if CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING
#ifdef CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING
if (chip::Server::GetInstance().GetFabricTable().FabricCount() > 0)
{
chip::DeviceLayer::Internal::BLEMgr().Shutdown();
Expand Down
4 changes: 2 additions & 2 deletions src/platform/ESP32/nimble/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void BLEManagerImpl::_Shutdown()
BleLayer::Shutdown();
xTimerDelete(sbleAdvTimeoutTimer, portMAX_DELAY);

// selectively setting kGATTServiceStarted flag, in order to notify the state machine to stop the CHIPoBLE gatt service
// selectively setting kGATTServiceStarted flag, in order to notify the state machine to stop the CHIPoBLE GATT service
mFlags.ClearAll().Set(Flags::kGATTServiceStarted);
mServiceMode = ConnectivityManager::kCHIPoBLEServiceMode_Disabled;

Expand Down Expand Up @@ -1017,7 +1017,7 @@ void BLEManagerImpl::ClaimBLEMemory(System::Layer *, void *)

VerifyOrReturn(err == ESP_OK, ChipLogError(DeviceLayer, "BLE deinit failed"));
ChipLogProgress(DeviceLayer, "BLE deinit successful and memory reclaimed");
// TODO: PostEvent(DeviceEventType::kBLEDeinitialized);
// TODO: post an event when ble is deinitialized and memory is added to heap
}
}

Expand Down

0 comments on commit 7b6d6c3

Please sign in to comment.