Skip to content

Commit

Permalink
fix(BLE): Feat to allow advertising updates while advertising (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinFairchild authored Oct 24, 2023
1 parent 7b3ad24 commit 0d5163a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Cordio/ble-host/sources/stack/dm/dm_adv_leg.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void dmAdvActSetData(dmAdvMsg_t *pMsg)

DM_TRACE_INFO1("dmAdvActSetData: state: %d", dmAdvCb.advState[DM_ADV_HANDLE_DEFAULT]);

if (dmAdvCb.advState[DM_ADV_HANDLE_DEFAULT] == DM_ADV_STATE_IDLE)
if ((dmAdvCb.advState[DM_ADV_HANDLE_DEFAULT] == DM_ADV_STATE_IDLE) || (dmAdvCb.advState[DM_ADV_HANDLE_DEFAULT] == DM_ADV_STATE_ADVERTISING))
{
/* set new data in HCI */
if (pMsg->apiSetData.location == DM_DATA_LOC_ADV)
Expand Down

0 comments on commit 0d5163a

Please sign in to comment.