progress
This commit is contained in:
parent
82306a9577
commit
0793dd0873
|
@ -136,6 +136,7 @@ CSRC = $(ALLCSRC) \
|
|||
CPPSRC = $(ALLCPPSRC) \
|
||||
uart.cpp \
|
||||
can.cpp \
|
||||
fault.cpp \
|
||||
main.cpp
|
||||
|
||||
# List ASM source files here.
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#include "fault.h"
|
||||
|
||||
static Fault currentFault = Fault::None;
|
||||
|
||||
bool HasFault()
|
||||
{
|
||||
return currentFault != Fault::None;
|
||||
}
|
||||
|
||||
Fault GetCurrentFault()
|
||||
{
|
||||
return currentFault;
|
||||
}
|
Loading…
Reference in New Issue