Commit 80aeacf
committed
Fix erase size in ESP.eraseConfig
SDK uses final 4 sectors of flash for configuration data.
ESP.eraseConfig would only erase 2 sectors, so in some cases of
corrupted data ("system param error"), users could not fix the issue
using ESP.eraseConfig, and had to use esptool instead.
Thanks @HugoML for reporting this.1 parent 93ad1fb commit 80aeacf
1 file changed
+6
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
| 400 | + | |
| 401 | + | |
402 | 402 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
408 | 406 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 407 | | |
413 | | - | |
414 | 408 | | |
415 | | - | |
| 409 | + | |
416 | 410 | | |
417 | 411 | | |
418 | 412 | | |
| |||
0 commit comments