mirror of https://github.com/rusefi/wideband.git
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;
|
||
|
}
|