Skip to content

Commit

Permalink
[nrf fromtree] Bluetooth: adv: Fix wrong assert
Browse files Browse the repository at this point in the history
Fixes wrong ASSERT usage cause abnormal failed.

Signed-off-by: Lingao Meng <[email protected]>
(cherry picked from commit c85640e)
Signed-off-by: Martin Tverdal <[email protected]>
  • Loading branch information
LingaoM authored and carlescufi committed Oct 26, 2021
1 parent f0a4242 commit b3440b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/adv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ static void adv_timeout(struct k_work *work)
#else
err = bt_le_adv_stop();
#endif
__ASSERT(err != 0, "Limited Advertising timeout reached, "
__ASSERT(err == 0, "Limited Advertising timeout reached, "
"failed to stop advertising");
}

Expand Down

0 comments on commit b3440b1

Please sign in to comment.