mirror of
https://github.com/mck1117/wideband.git
synced 2026-11-11 06:39:22 -05:00
* 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>
21 lines
270 B
C++
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;
|
|
}
|