diff --git a/platformio.ini b/platformio.ini index 554960bb..518ee75a 100644 --- a/platformio.ini +++ b/platformio.ini @@ -32,12 +32,10 @@ halfile = generic.h [platformio] ; upload firmware to board with usb cable default_envs = usb - ; upload firmware to a jfrog bintray repository ;default_envs = ota - +; use latest versions of libraries ;default_envs = dev -build_cache_dir = /tmp/platformio-shared-cache description = Paxcounter is a device for metering passenger flows in realtime. It counts how many mobile devices are around. [common] 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++) {