From e5972c4f82a75ddee1f196b7e7457450b53e92ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ha=C3=9Fel?= Date: Mon, 2 Jan 2023 13:44:10 +0100 Subject: [PATCH] FIX: NTP timeSyncCallback --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 53b592c..7009ca5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,6 +5,7 @@ #include "mode/Mode.h" #include "display/Display.h" #include +#include #include "mode/GameOfLife/GameOfLife.h" #include "mode/Pong/Pong.h" @@ -162,6 +163,10 @@ void loop() { mode_step(); } +void timeSyncCallback(struct timeval *tv) { + Serial.printf("timeSyncCallback: %ld\n", tv->tv_sec); +} + void wifi_loop() { bool hasIp = (uint32_t) WiFi.localIP() != 0; if (!connected) {