From b272c6a2d0d6031568657779464683d4a00d2796 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 24 Feb 2021 23:22:32 +0100 Subject: [PATCH] time request every five minutes --- cube/User/Src/networkAbstractionLayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cube/User/Src/networkAbstractionLayer.c b/cube/User/Src/networkAbstractionLayer.c index 575967c..d9a81d9 100644 --- a/cube/User/Src/networkAbstractionLayer.c +++ b/cube/User/Src/networkAbstractionLayer.c @@ -31,7 +31,7 @@ static void networkSecondsHandler(void *handle) { coloredMsg(LOG_YELLOW, "nsh, failed"); seconds.missedUpdates += 1; } - } else if (tryAgain || ((seconds.seconds % 3600) == 0)) { + } else if (tryAgain || ((seconds.seconds % 300) == 0)) { coloredMsg(LOG_YELLOW, "nsh, periodically querying time"); uint64_t tmpSeconds = networkSntpQuery(); if (tmpSeconds != 0) {