Add safety flag for debugbuild
This commit is contained in:
@@ -85,6 +85,7 @@ static volatile struct error_flag flags[] = {
|
||||
ERR_FLAG_ENTRY(ERR_FLAG_SYSTICK, true),
|
||||
ERR_FLAG_ENTRY(ERR_FLAG_WTCHDG_FIRED, true),
|
||||
ERR_FLAG_ENTRY(ERR_FLAG_UNCAL, false),
|
||||
ERR_FLAG_ENTRY(ERR_FLAG_DEBUG, true),
|
||||
};
|
||||
|
||||
static volatile struct timing_mon timings[] = {
|
||||
@@ -248,6 +249,10 @@ void safety_controller_init()
|
||||
|
||||
if (watchdog_check_reset_source())
|
||||
safety_controller_report_error(ERR_FLAG_WTCHDG_FIRED);
|
||||
|
||||
#ifdef DEBUGBUILD
|
||||
safety_controller_report_error(ERR_FLAG_DEBUG);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void safety_controller_check_stack()
|
||||
|
Reference in New Issue
Block a user