changed timeout of state machine to fall thru temperature read state

This commit is contained in:
rljonesau 2018-12-15 22:15:30 +11:00
parent 97b2c849e2
commit 6a307eeb81

View file

@ -384,9 +384,10 @@ void loop()
}
}
DebugPort.println("\007Recycling blue wire serial interface");
DebugPort.println("Recycling blue wire serial interface");
initBlueWireSerial();
CommState.set(CommStates::Idle); // revert to idle mode
// CommState.set(CommStates::Idle); // revert to idle mode, after passing thru temperature mode
CommState.set(CommStates::TemperatureRead); // revert to idle mode, after passing thru temperature mode
}
}
@ -569,7 +570,7 @@ void loop()
if(BlueWireData.available()) {
#ifdef BADSTARTCHECK
if(!CommState.checkValidStart(BlueWireData.getValue())) {
DebugPort.println("***** \007 Invalid start of frame - restarting Serial port *****");
DebugPort.println("***** Invalid start of frame - restarting Serial port *****");
initBlueWireSerial();
CommState.set(CommStates::Idle);
}