Print, Abort, Exit
Posted: Tue Jun 15, 2021 1:11 pm
I defined a simple "print error and abort" routine that unfortunately never seems to print anything. Is there anything obviously wrong with this approach?
Thanks!
Thanks!
Code: Select all
inline void DelayedReboot()
{
Serial.printf("** REBOOT **");
Serial.flush();
delay(10000);
exit(0);
} // For catastrophic failure, wait 10 seconds then reboot