mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
mesh: use next_timeout_ms in mesh_secure_network_beacon_run
This commit is contained in:
parent
b0702c812b
commit
7c8ffd3dee
@ -241,7 +241,7 @@ static void mesh_secure_network_beacon_run(btstack_timer_source_t * ts){
|
||||
// setup next run
|
||||
if (next_timeout_ms == 0) return;
|
||||
|
||||
btstack_run_loop_set_timer(&beacon_timer, 10);
|
||||
btstack_run_loop_set_timer(&beacon_timer, next_timeout_ms);
|
||||
btstack_run_loop_set_timer_handler(&beacon_timer, mesh_secure_network_beacon_run);
|
||||
btstack_run_loop_add_timer(&beacon_timer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user