This commit is contained in:
rusefillc 2022-01-10 22:59:31 -05:00
parent 82306a9577
commit 0793dd0873
2 changed files with 14 additions and 0 deletions

View File

@ -136,6 +136,7 @@ CSRC = $(ALLCSRC) \
CPPSRC = $(ALLCPPSRC) \
uart.cpp \
can.cpp \
fault.cpp \
main.cpp
# List ASM source files here.

View File

@ -0,0 +1,13 @@
#include "fault.h"
static Fault currentFault = Fault::None;
bool HasFault()
{
return currentFault != Fault::None;
}
Fault GetCurrentFault()
{
return currentFault;
}