Skip to content

Commit

Permalink
Remove debug log from DriveBLEState and update advertising stop condi…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
rosahay-silabs committed Dec 8, 2024
1 parent 26d3870 commit 5cf0ef7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/silabs/rs911x/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,6 @@ CHIP_ERROR BLEManagerImpl::MapBLEError(int bleErr)

void BLEManagerImpl::DriveBLEState(void)
{
ChipLogDetail(DeviceLayer, "[DBG] DriveBLEState");
CHIP_ERROR err = CHIP_NO_ERROR;

// Check if BLE stack is initialized ( TODO )
Expand Down Expand Up @@ -764,7 +763,7 @@ CHIP_ERROR BLEManagerImpl::StopAdvertising(void)
{
// Since DriveBLEState is not called the device is still advertising
status = rsi_ble_stop_advertising();
if (status == RSI_SUCCESS || status == 0x4E0C)
if (status != RSI_SUCCESS)
{
mFlags.Clear(Flags::kAdvertising).Clear(Flags::kRestartAdvertising);
mFlags.Set(Flags::kFastAdvertisingEnabled, true);
Expand Down

0 comments on commit 5cf0ef7

Please sign in to comment.