Skip to content

Commit 43a7439

Browse files
committed
host/mesh: fix handling of bt_mesh_adv_queue in mesh_adv_thread
`ble_npl_eventq_get` is waiting for events for duration in tick units, not ms. This means that we're waiting OS_TICKS_PER_SEC times to long and catch events that are meant to be missed.
1 parent 63edf82 commit 43a7439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nimble/host/mesh/src/adv_legacy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ mesh_adv_thread(void *args)
154154
BT_DBG("PB-GATT Advertising up to %d ms", (int) adv_timeout);
155155
}
156156

157-
ev = ble_npl_eventq_get(&bt_mesh_adv_queue, adv_timeout);
157+
ev = ble_npl_eventq_get(&bt_mesh_adv_queue, ble_npl_time_ms_to_ticks32(adv_timeout));
158158
bt_le_adv_stop();
159159
}
160160
} else {

0 commit comments

Comments
 (0)