From 8d26462be25560182d05ab80ea106b239c0ee1cf Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Thu, 18 Apr 2013 00:07:33 +0200 Subject: [PATCH] Removed call to analogPinToChannel for Leonardo --- cores/arduino/wiring_analog.c | 1 - 1 file changed, 1 deletion(-) 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