Correctly handle case where an analog pin is used for the fuel2 switching input
This commit is contained in:
parent
aebc2dc1f8
commit
c063e19213
|
@ -354,7 +354,7 @@ void loop()
|
|||
}
|
||||
else if(configPage10.fuel2Mode == FUEL2_MODE_INPUT_SWITCH)
|
||||
{
|
||||
if(digitalRead(configPage10.fuel2InputPin) == configPage10.fuel2InputPolarity)
|
||||
if(digitalRead(pinFuel2Input) == configPage10.fuel2InputPolarity)
|
||||
{
|
||||
BIT_SET(currentStatus.status3, BIT_STATUS3_FUEL2_ACTIVE); //Set the bit indicating that the 2nd fuel table is in use.
|
||||
currentStatus.VE2 = getVE2();
|
||||
|
|
Loading…
Reference in New Issue