wideband/firmware/fault.cpp

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;
}