Added debug messages if state machine gets thrown back to idle due to no bluewire rx data

Added protocol document!
This commit is contained in:
rljonesau 2018-10-28 15:05:23 +11:00
parent 151543b84c
commit ea8af6db09
2 changed files with 10 additions and 0 deletions

View file

@ -235,6 +235,16 @@ void loop()
CommState.is(CommStates::HeaterRx1) ||
CommState.is(CommStates::HeaterRx2) ) {
if(CommState.is(CommStates::OEMCtrlRx)) {
DebugPort.println("Timeout collecting OEM controller data, returning to Idle State");
}
else if(CommState.is(CommStates::HeaterRx1)) {
DebugPort.println("Timeout collecting OEM heater response data, returning to Idle State");
}
else {
DebugPort.println("Timeout collecting BTC heater response data, returning to Idle State");
}
CommState.set(CommStates::Idle); // revert to idle mode
}
}