Skip to content
Commit 767772aa authored by Nirav Agrawal's avatar Nirav Agrawal Committed by Benjamin Cabé
Browse files

samples: bluetooth: fix adv_update error in bthome_sensor_template



- "bt_le_adv_update_data()" func calls just after bt_enable() call
 without completion of bt_ready() which is called as part of worker
 thread within init_work() causes issue where bluetooth controller
 has not been initialized and provides cb to app before app requests
 advertise_update to the stack.
- remove bt_ready() func and place content within main() post
 bt_enable() fixes this issue.

Signed-off-by: default avatarNirav Agrawal <nirav.agrawal@nxp.com>
parent 46cf96a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment