BUG FIX: OLED was showing E-07 faults when there should not have been

This commit is contained in:
rljonesau 2018-12-21 21:58:39 +11:00
parent b99623108b
commit 18ce10e202

View file

@ -422,11 +422,11 @@ void loop()
// Detect the possible start of a new frame sequence from an OEM controller // Detect the possible start of a new frame sequence from an OEM controller
// This will be the first activity for considerable period on the blue wire // This will be the first activity for considerable period on the blue wire
// The heater always responds to a controller frame, but otherwise never by itself // The heater always responds to a controller frame, but otherwise never by itself
bHasHtrData = false;
if(RxTimeElapsed >= 970) { if(RxTimeElapsed >= 970) {
// have not seen any receive data for a second. // have not seen any receive data for a second.
// OEM controller is probably not connected. // OEM controller is probably not connected.
// Skip state machine immediately to BTC_Tx, sending our own settings. // Skip state machine immediately to BTC_Tx, sending our own settings.
bHasHtrData = false;
bHasOEMController = false; bHasOEMController = false;
bool isBTCmaster = true; bool isBTCmaster = true;
TxManage.PrepareFrame(DefaultBTCParams, isBTCmaster); // use our parameters, and mix in NV storage values TxManage.PrepareFrame(DefaultBTCParams, isBTCmaster); // use our parameters, and mix in NV storage values
@ -444,6 +444,7 @@ void loop()
DebugPort.println("ms Idle time."); DebugPort.println("ms Idle time.");
} }
bHasHtrData = false;
bHasOEMController = true; bHasOEMController = true;
CommState.set(CommStates::OEMCtrlRx); // we must add this new byte! CommState.set(CommStates::OEMCtrlRx); // we must add this new byte!
// //
@ -954,4 +955,4 @@ const char* getBlueWireStatStr()
bool hasOEMcontroller() bool hasOEMcontroller()
{ {
return bHasOEMController; return bHasOEMController;
} }