My users will have the option to reboot the device at any stage. At the moment I just make a call to:
When my application restarts it checks:
and then writes to a log file to indicate why the application restarted. No I have tried calling RebootDevice with the soft boot param set to true and false, but when the device restarts it is always getting a LastResetCause of WatchdogReset.
Why when I set soft reset to false does the watchdog still see the restart as a watchdog restart, and is there a way to override the ResetCause enum?
Any help appreciated.