mirror of
https://github.com/mck1117/wideband.git
synced 2026-11-03 19:06:29 -05:00
21 lines
256 B
C++
21 lines
256 B
C++
#include "fault.h"
|
|
|
|
using namespace wbo;
|
|
|
|
static Fault currentFault = Fault::None;
|
|
|
|
void SetFault(Fault fault)
|
|
{
|
|
currentFault = fault;
|
|
}
|
|
|
|
bool HasFault()
|
|
{
|
|
return currentFault != Fault::None;
|
|
}
|
|
|
|
Fault GetCurrentFault()
|
|
{
|
|
return currentFault;
|
|
}
|