From 9c1a9e9f477685ac88959f1148f0c9b10fac7cc7 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Tue, 23 Jul 2019 21:33:27 +0200 Subject: [PATCH] timesync.cpp: bugfix vtaskdelay --- src/timesync.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/timesync.cpp b/src/timesync.cpp index 35fb8c84..b9656bcc 100644 --- a/src/timesync.cpp +++ b/src/timesync.cpp @@ -64,8 +64,7 @@ void process_timesync_req(void *taskparameter) { // wait until we are joined if we are not while (!LMIC.devaddr) { - vTaskDelay(3000); - } + vTaskDelay(pdMS_TO_TICKS(3000)); // collect timestamp samples for (uint8_t i = 0; i < TIME_SYNC_SAMPLES; i++) {