Merge pull request #396 from cyberman54/master

sync master -> dev
This commit is contained in:
Verkehrsrot 2019-07-23 21:36:34 +02:00 committed by GitHub
commit 1982959314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -32,12 +32,10 @@ halfile = generic.h
[platformio] [platformio]
; upload firmware to board with usb cable ; upload firmware to board with usb cable
default_envs = usb default_envs = usb
; upload firmware to a jfrog bintray repository ; upload firmware to a jfrog bintray repository
;default_envs = ota ;default_envs = ota
; use latest versions of libraries
;default_envs = dev ;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. description = Paxcounter is a device for metering passenger flows in realtime. It counts how many mobile devices are around.
[common] [common]

View File

@ -64,8 +64,7 @@ void process_timesync_req(void *taskparameter) {
// wait until we are joined if we are not // wait until we are joined if we are not
while (!LMIC.devaddr) { while (!LMIC.devaddr) {
vTaskDelay(3000); vTaskDelay(pdMS_TO_TICKS(3000));
}
// collect timestamp samples // collect timestamp samples
for (uint8_t i = 0; i < TIME_SYNC_SAMPLES; i++) { for (uint8_t i = 0; i < TIME_SYNC_SAMPLES; i++) {