REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
crash_report.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef ARDUINO
4
5#include "utils/logging.h"
6#include "CrashReport.h" // core/teensy4
7// #include "StreamUtils.h"
8
9namespace utils {
10
28 if(CrashReport) {
29 // StringPrint buf;
30 // crash.printTo(buf);
31 // buf.str();
32 msg::Log::get().println("ALERT: Previous System crash detected. Post Mortem Report:");
33 msg::Log::get().println(CrashReport);
34 }
35 }
36
37} // ns
38#else /* not arduino */
39
40namespace utils {
41
42} //ns
43
44#endif /* ARDUINO */
void check_and_log_crash()
Logs out what has been captured by the Teensy CrashReport tooling, cf.
static Log & get()