From 14d29e11f3ba75bece8498716c955592c79cda2d Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Thu, 28 Mar 2019 14:24:10 +0100 Subject: [PATCH] timesync.cpp fixes --- src/timesync.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/timesync.cpp b/src/timesync.cpp index a3fa63fb..6f1f23c8 100644 --- a/src/timesync.cpp +++ b/src/timesync.cpp @@ -135,6 +135,7 @@ void process_timesync_req(void *taskparameter) { // end of time critical section: release I2C bus I2C_MUTEX_UNLOCK(); +finish: lora_time_sync_pending = false; timeSyncReqTask = NULL; vTaskDelete(NULL); // end task @@ -142,7 +143,7 @@ void process_timesync_req(void *taskparameter) { error: ESP_LOGW(TAG, "[%0.3f] Timeserver error: handshake timed out", millis() / 1000.0); - goto finish; + goto finish; // end task } // called from lorawan.cpp after time_sync_req was sent