From 7c8ffd3deefdf4d7dc64f6249df282e8decea1f2 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 1 Jul 2019 13:01:23 +0200 Subject: [PATCH] mesh: use next_timeout_ms in mesh_secure_network_beacon_run --- src/mesh/beacon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/beacon.c b/src/mesh/beacon.c index b9c6c4560..4042511d4 100644 --- a/src/mesh/beacon.c +++ b/src/mesh/beacon.c @@ -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); }