Skip to content

Commit

Permalink
Remove unncessary BLE assert (#14963)
Browse files Browse the repository at this point in the history
  • Loading branch information
adabreuti authored and pull[bot] committed Jul 24, 2023
1 parent 81e8a2b commit dee445a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/platform/cc13x2_26x2/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,14 +838,16 @@ void BLEManagerImpl::ProcessEvtHdrMsg(QueuedEvt_t * pMsg)
// Enable legacy advertising for set #1
status = (bStatus_t) GapAdv_enable(sInstance.advHandleLegacy, GAP_ADV_ENABLE_OPTIONS_USE_MAX, 0);

assert(status == SUCCESS);
// If adverisement fails, keep flags set
if (status == SUCCESS)
{

// Start advertisement timeout timer
Util_startClock(&sInstance.clkAdvTimeout);
// Start advertisement timeout timer
Util_startClock(&sInstance.clkAdvTimeout);

sInstance.mFlags.Set(Flags::kAdvertising);
sInstance.mFlags.Set(Flags::kAdvertising);
}
}

// Advertising should be disabled
if ((!sInstance.mFlags.Has(Flags::kAdvertisingEnabled)) && sInstance.mFlags.Has(Flags::kAdvertising))
{
Expand Down

0 comments on commit dee445a

Please sign in to comment.