mirror of
https://github.com/mck1117/wideband.git
synced 2026-11-14 16:19:18 -05:00
19 lines
234 B
C++
19 lines
234 B
C++
#include "fault.h"
|
|
|
|
static Fault currentFault = Fault::None;
|
|
|
|
void setFault(Fault fault)
|
|
{
|
|
currentFault = fault;
|
|
}
|
|
|
|
bool hasFault()
|
|
{
|
|
return currentFault != Fault::None;
|
|
}
|
|
|
|
Fault getCurrentFault()
|
|
{
|
|
return currentFault;
|
|
}
|