Skip to content

Commit

Permalink
remove advertisement rerun flag for Zephyr
Browse files Browse the repository at this point in the history
If present, debug builds will fail with `unused-variable`-error by the compiler.
Code which used the variable was removed with cba92c0.
  • Loading branch information
deveritec-rosc authored Oct 4, 2022
1 parent b44263f commit 605f549
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/platform/Zephyr/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ struct BLEManagerImpl::ServiceData
CHIP_ERROR BLEManagerImpl::StartAdvertising(void)
{
int err = 0;
const bool isAdvertisingRerun = mFlags.Has(Flags::kAdvertising);

// 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 605f549

Please sign in to comment.