aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Sloth Lauszus <lauszus@gmail.com>2013-04-18 00:07:33 +0200
committerKristian Sloth Lauszus <lauszus@gmail.com>2013-04-18 00:07:33 +0200
commit8d26462be25560182d05ab80ea106b239c0ee1cf (patch)
tree26107339e78340e97c173346204ee4af72395654
parentb9717187fd9b11c77d75a289050cb0a58512d2b9 (diff)
Removed call to analogPinToChannel for Leonardo
-rw-r--r--cores/arduino/wiring_analog.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cores/arduino/wiring_analog.c b/cores/arduino/wiring_analog.c
index bd148cc..81fb1e1 100644
--- a/cores/arduino/wiring_analog.c
+++ b/cores/arduino/wiring_analog.c
@@ -54,7 +54,6 @@ int analogRead(uint8_t pin)
#endif
#if defined(__AVR_ATmega32U4__)
- pin = analogPinToChannel(pin);
ADCSRB = (ADCSRB & ~(1 << MUX5)) | (((pin >> 3) & 0x01) << MUX5);
#elif defined(ADCSRB) && defined(MUX5)
// the MUX5 bit of ADCSRB selects whether we're reading from channels