Files
wideband/firmware/fault.cpp
Andrey G cddcd0d88c Multichannel (#134)
* Multichannel AFR

* heater: fixes for multi channel mode

* f1_dual: fix configuration names

* pump_dac: fixes for multi-channel mode

* pwm: fixes for multichannel mode

* pump_control: reference instead of pointer

* sampling: reference instead of pointer

* heater_control: reference instead of pointer

* sampling: comment about heater/battery voltage

* f0_module: fixes for multi-channel update

* f1_rev2: fix for multichannel AFR

* hello rev 3

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-08-29 17:19:30 -07:00

21 lines
270 B
C++

#include "fault.h"
using namespace wbo;
static Fault currentFault = Fault::None;
void SetFault(int ch, Fault fault)
{
currentFault = fault;
}
bool HasFault()
{
return currentFault != Fault::None;
}
Fault GetCurrentFault(int ch)
{
return currentFault;
}