Retry NTP sooner after a failed attempt
The first NTP attempt after boot usually fails and the retry waited a flat 5 minutes, so the clock showed 00:00 (1970) for 5 minutes after every restart or OTA update. Retries now back off 15 s, 30 s, 1 min ... up to 5 min. Measured after an OTA update: time set at 30 s uptime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b40b5f680c
commit
9f960fae17
2 files changed
+13
-5
No files matched your search
@@ -106,7 +106,7 @@ GPIO0 to GND, tap RST to GND, then release GPIO0.
|
||||
`wledDarkWithTubes` / `wledUseBrightness` live in `prmExt`, stored in EEPROM after `prm` with
|
||||
their own magic value: never add fields to `prm` (a `MAGIC_VALUE` bump factory-resets the
|
||||
clock, WiFi included). HA switch "SignalRGB".
|
||||
7. Done (2026-10-28, not yet on the clock): new web UI. Source `firmware/uniclock/web/index.html`
|
||||
7. Done (2026-10-29, on the clock): new web UI. Source `firmware/uniclock/web/index.html`
|
||||
(one file, no jQuery, controls generated from the `PAGES` table), gzipped by `web/gzip_web.py`
|
||||
to `data/index.html.gz` (12 KB, was 147 KB), served by one `serveStatic` with `no-cache`.
|
||||
Opened from disk it runs on sample data; check it with headless Edge (`msedge --headless=new
|
||||
@@ -114,4 +114,6 @@ GPIO0 to GND, tap RST to GND, then release GPIO0.
|
||||
new fields `ip`, `hasAlarm`, `hasRadar`, real `cathProtMin`; `/getCurrentInfos` has
|
||||
`currentSec` and `mqtt` (0 off / 1 not connected / 2 connected). Network settings save with a
|
||||
Save button and offer a restart.
|
||||
NTP: the first attempt after boot usually fails; retries now back off 15 s, 30 s ... 5 min
|
||||
(was a flat 5 min, so the clock showed 00:00 for 5 minutes after every restart).
|
||||
8. Open: the user can create `secrets.h` (gitignored, never read it) for OTA and web passwords.
|
||||
Reference in new issue
Block a user