FIX: NTP timeSyncCallback
This commit is contained in:
parent
9f2783689c
commit
e5972c4f82
@ -5,6 +5,7 @@
|
||||
#include "mode/Mode.h"
|
||||
#include "display/Display.h"
|
||||
#include <WebServer.h>
|
||||
#include <esp_sntp.h>
|
||||
|
||||
#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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user