Use ntp time sync at end of wifi activities

This commit is contained in:
jpirnay
2026-03-26 21:55:28 +01:00
parent 7f9456e8c6
commit 92877f9c36
9 changed files with 37 additions and 62 deletions
+5
View File
@@ -65,4 +65,9 @@ void formatTime(char* buf, size_t bufSize, bool use24h);
/// synced, or an empty string if not.
void formatLogTime(char* buf, size_t bufSize);
/// Tear down WiFi cleanly. When skipNtpSync is false (default) and the
/// clock is approximate, performs an opportunistic NTP sync before
/// disconnecting — essentially free since we already have a connection.
void wifiOff(bool skipNtpSync = false);
} // namespace HalClock