- Notifications
You must be signed in to change notification settings - Fork13.3k
Commit158039e
Reduce mem footprint of ESP.getResetInfo() (#7030)
This function has excessively long datastrings that canbetter be stored in flash, reducing runtime memory footprint.Also detailed formatting only makes sense when there is anexception or a watchdog. In other cases instead of printingan unhelpful "flag: 0" we can just return the ResetReason, whichis much more readable.Saves about 120 bytes of (data) memory.1 parent00440cd commit158039e
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
494 | 494 | | |
495 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
496 | 498 | | |
497 | 499 | | |
498 | | - | |
| 500 | + | |
499 | 501 | | |
500 | 502 | | |
501 | 503 | | |
| |||
0 commit comments
Comments
(0)