Skip to content

Commit

Permalink
Limit NTP to ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Nov 15, 2023
1 parent ca90dc7 commit 004c3be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BSB_LAN/BSB_LAN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 004c3be

Please sign in to comment.