Skip to content

Commit

Permalink
[Zephyr] remove BLE advertisement rerun flag (#23006)
Browse files Browse the repository at this point in the history
* remove advertisement rerun flag for Zephyr

If present, debug builds will fail with `unused-variable`-error by the compiler.
Code which used the variable was removed with cba92c0.

* Restyled by clang-format

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Nov 17, 2023
1 parent 7676d48 commit 1266648
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/Zephyr/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ struct BLEManagerImpl::ServiceData

CHIP_ERROR BLEManagerImpl::StartAdvertising(void)
{
int err = 0;
const bool isAdvertisingRerun = mFlags.Has(Flags::kAdvertising);
int err = 0;

// At first run always select fast advertising, on the next attempt slow down interval.
const uint32_t intervalMin = mFlags.Has(Flags::kFastAdvertisingEnabled) ? CHIP_DEVICE_CONFIG_BLE_FAST_ADVERTISING_INTERVAL_MIN
Expand Down

0 comments on commit 1266648

Please sign in to comment.