From 2377bb9ddd7a987557e06d0ae851cddee90ae8de Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 3 Feb 2007 15:36:30 +0000 Subject: [PATCH] Removing delay() in analogRead(). It seems we don't need it. Not sure what changed from before when it seemed necessary to prevent bugs. --- targets/arduino/wiring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/arduino/wiring.c b/targets/arduino/wiring.c index 52bac34d4..e6a3fa5a4 100755 --- a/targets/arduino/wiring.c +++ b/targets/arduino/wiring.c @@ -171,7 +171,7 @@ int analogRead(int pin) ADMUX = (ADMUX & (unsigned int) 0xf0) | (ch & (unsigned int) 0x0f); // without a delay, we seem to read from the wrong channel - delay(1); + //delay(1); // start the conversion sbi(ADCSRA, ADSC);