From fc2997c9fd87f4d7b67af5a1492e00ca1c09d5c2 Mon Sep 17 00:00:00 2001 From: Marius Gripp Date: Mon, 2 Sep 2019 16:56:06 +0200 Subject: [PATCH] start timediffseq at -1, so first syncing can finish --- src/timesync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timesync.cpp b/src/timesync.cpp index be752fac..e51454eb 100644 --- a/src/timesync.cpp +++ b/src/timesync.cpp @@ -26,7 +26,7 @@ typedef std::chrono::duration> TaskHandle_t timeSyncReqTask = NULL; -static uint8_t time_sync_seqNo = 0; +static uint8_t time_sync_seqNo = -1; static bool timeSyncPending = false; static myClock_timepoint time_sync_tx[TIME_SYNC_SAMPLES]; static myClock_timepoint time_sync_rx[TIME_SYNC_SAMPLES];