From c14215d42f4ea4f9d9747e3ee50cdb0f0bac2db9 Mon Sep 17 00:00:00 2001 From: mattbk Date: Mon, 25 Sep 2023 21:12:25 -0500 Subject: [PATCH] Wait for RTC before querying on boot. --- vulpes/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vulpes/src/main.cpp b/vulpes/src/main.cpp index f651a8c..6f49a1d 100644 --- a/vulpes/src/main.cpp +++ b/vulpes/src/main.cpp @@ -281,8 +281,9 @@ void setup() { // Report the RTC time after waiting two seconds // https://amiok.net/gitea/W1CDN/vulpes/issues/50#issuecomment-1376 + Serial.println("Wait 2s for RTC"); delay(2000); - Serial.print("RTC time on startup: "); + Serial.println("RTC time on startup: "); Serial.println(rtc.now().unixtime()); Serial.println(rtc.now().timestamp());