mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-07 15:12:45 +00:00
Documentation
This commit is contained in:
parent
71330990f5
commit
ea4f5cf015
@ -504,7 +504,7 @@ Button input is sometimes handled by a system applet. `InkHUD::Events` determine
|
|||||||
|
|
||||||
#### Factory Reset
|
#### Factory Reset
|
||||||
|
|
||||||
The Events class handles the admin messages(s) which trigger factory reset. We set `Events::doFactoryReset = true`, which causes `Events::onReboot` to erase the contents of InkHUD's data directory. We do this because some applets (e.g. ThreadedMessageApplet) save their own data to flash, so if we erased earlier, that data would get re-written during reboot.
|
The Events class handles the admin messages(s) which trigger factory reset. We set `Events::eraseOnReboot = true`, which causes `Events::onReboot` to erase the contents of InkHUD's data directory. We do this because some applets (e.g. ThreadedMessageApplet) save their own data to flash, so if we erased earlier, that data would get re-written during reboot.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user