REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
crash_report.cpp
Go to the documentation of this file.
1
2#include "utils/logging.h"
3#include <CrashReport.h> // core/teensy4
4
5namespace utils {
6
24 if (CrashReport) {
25 // StringPrint buf;
26 // crash.printTo(buf);
27 // buf.str();
28 msg::Log::get().println("ALERT: Previous System crash detected. Post Mortem Report:");
29 msg::Log::get().println(CrashReport);
30 }
31}
32
33} // namespace utils
void check_and_log_crash()
Logs out what has been captured by the Teensy CrashReport tooling, cf.