timesync.cpp: bugfix vtaskdelay

This commit is contained in:
Verkehrsrot 2019-07-23 21:33:27 +02:00
parent f1b7e10f85
commit 9c1a9e9f47

View File

@ -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++) {