Skip to content

Commit

Permalink
Correction for fuel pump over analog pin mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
noisymime committed Oct 9, 2017
1 parent b067ef1 commit 2fca4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speeduino/utils.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2fca4d4

Please sign in to comment.