Correction for fuel pump over analog pin mapping
This commit is contained in:
parent
b067ef100b
commit
2fca4d481b
|
@ -43,7 +43,7 @@ uint16_t freeRam ()
|
|||
byte pinTranslate(byte rawPin)
|
||||
{
|
||||
byte outputPin = rawPin;
|
||||
if(rawPin > BOARD_DIGITAL_GPIO_PINS) { outputPin = A8 + (outputPin - BOARD_DIGITAL_GPIO_PINS); }
|
||||
if(rawPin > BOARD_DIGITAL_GPIO_PINS) { outputPin = A8 + (outputPin - BOARD_DIGITAL_GPIO_PINS - 1); }
|
||||
|
||||
return outputPin;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue