wideband/firmware/fault.cpp

19 lines
234 B
C++
Raw Normal View History

2020-12-10 18:32:41 -08:00
#include "fault.h"
static Fault currentFault = Fault::None;
void setFault(Fault fault)
{
currentFault = fault;
}
bool hasFault()
{
return currentFault == Fault::None;
}
Fault getCurrentFault()
{
return currentFault;
}