Skip to content

Commit b3440b1

Browse files
LingaoMcarlescufi
authored andcommitted
[nrf fromtree] Bluetooth: adv: Fix wrong assert
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]>
1 parent f0a4242 commit b3440b1

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/adv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ static void adv_timeout(struct k_work *work)
13711371
#else
13721372
err = bt_le_adv_stop();
13731373
#endif
1374-
__ASSERT(err != 0, "Limited Advertising timeout reached, "
1374+
__ASSERT(err == 0, "Limited Advertising timeout reached, "
13751375
"failed to stop advertising");
13761376
}
13771377

0 commit comments

Comments
 (0)