From 004c3be7d5a57bb32a5c79992f48df5feb1667d6 Mon Sep 17 00:00:00 2001 From: fredlcore Date: Wed, 15 Nov 2023 20:01:43 +0800 Subject: [PATCH] Limit NTP to ESP32 --- BSB_LAN/BSB_LAN.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BSB_LAN/BSB_LAN.ino b/BSB_LAN/BSB_LAN.ino index 1ffff1b2..65d06ea3 100644 --- a/BSB_LAN/BSB_LAN.ino +++ b/BSB_LAN/BSB_LAN.ino @@ -7591,11 +7591,13 @@ void loop() { if (bus->getBusType() != BUS_PPS && !my_dev_fam) { SetDevId(); } +#if defined(ESP32) struct tm now; getLocalTime(&now,100); if (now.tm_year < 100) { SetDateTime(); } +#endif #if defined(WIFI) && defined(ESP32) // if WiFi is down, try reconnecting every minute