Update factory reset procedure in README and main.cpp for clarity and functionality
This commit is contained in:
@@ -79,12 +79,15 @@ After connecting, the device is reachable at:
|
||||
|
||||
### Factory reset (forgot password)
|
||||
|
||||
If you lose the web UI password, hold the **BOOT button** (GPIO0) for 3 seconds during startup. The firmware resets all settings to factory defaults **except** meter pin assignments and calibration (maxDuty), which are preserved. On acknowledgement, all connected meters sweep 0→100→0.
|
||||
If you lose the web UI password, **reset the device 5 times in quick succession** (press the EN button or cycle power 5× within a few seconds — before the boot completes). The firmware resets all settings to factory defaults **except** meter pin assignments and calibration (maxDuty), which are preserved. On acknowledgement, all connected meters sweep 0→100→0.
|
||||
|
||||
Serial output confirms the reset:
|
||||
Serial output shows the progress:
|
||||
|
||||
```
|
||||
[BOOT] BOOT button held, hold 3s for factory reset...
|
||||
[BOOT] reset count 1/5
|
||||
[BOOT] reset count 2/5
|
||||
...
|
||||
[BOOT] reset count 5/5, triggering factory reset
|
||||
[BOOT] factory reset triggered!
|
||||
...
|
||||
[BOOT] factory reset complete, restarting...
|
||||
@@ -236,4 +239,4 @@ Config is stored as JSON in LittleFS at `/config.json`.
|
||||
}
|
||||
```
|
||||
|
||||
The file is written by the web UI and should not need manual editing. To reset to factory defaults (keeping pin/calibration), hold the BOOT button for 3 seconds at startup. To erase everything including flash, use `pio run --target erase`.
|
||||
The file is written by the web UI and should not need manual editing. To reset to factory defaults (keeping pin/calibration), reset the device 5 times in quick succession. To erase everything including flash, use `pio run --target erase`.
|
||||
|
||||
Reference in New Issue
Block a user