Correction for fuel pump over analog pin mapping

This commit is contained in:
Josh Stewart 2017-10-09 13:34:41 +11:00
parent b067ef100b
commit 2fca4d481b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}