Skip to content

Commit

Permalink
Added fix for slow advertisement
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Jan 18, 2024
1 parent b044b5e commit 81b4902
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/platform/silabs/rs911x/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,11 @@ CHIP_ERROR BLEManagerImpl::StartAdvertising(void)
ChipLogDetail(DeviceLayer, "Start BLE advertissement");
}

err = ConfigureAdvertisingData();
SuccessOrExit(err);
if (!(mFlags.Has(Flags::kAdvertising)))
{
err = ConfigureAdvertisingData();
SuccessOrExit(err);
}

mFlags.Clear(Flags::kRestartAdvertising);

Expand Down

0 comments on commit 81b4902

Please sign in to comment.