mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
mesh: only restart timer if there are transitions active
This commit is contained in:
parent
f8517ec7b4
commit
efc82b7308
@ -168,6 +168,8 @@ void mesh_access_transitions_timeout_handler(btstack_timer_source_t * timer){
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (btstack_linked_list_empty(&transitions)) return;
|
||||
|
||||
btstack_run_loop_set_timer(timer, mesh_access_get_min_transitions_timeout_ms());
|
||||
btstack_run_loop_add_timer(timer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user