From bf5435c4f71a2c0abd16ba586fea09e25d8fc2c6 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 22 Jul 2019 23:48:22 +0200 Subject: [PATCH 1/2] Update platformio.ini --- platformio.ini | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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] From 9c1a9e9f477685ac88959f1148f0c9b10fac7cc7 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Tue, 23 Jul 2019 21:33:27 +0200 Subject: [PATCH 2/2] 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++) {