mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-26 16:27:57 +00:00
The upstream `password` command saves /prefs.json without reporting the result, and WebConfig overwrites its reply with "OK". If that write failed while the later /mqtt.json write succeeded, wifi.setup_complete was set and the factory password came back after reboot with first-run setup suppressed. onInitialSetupComplete() now re-saves /prefs.json and records completion only when it succeeds; otherwise the batch fails, setup stays open, and no reboot is queued.