1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Removing delay() in analogRead(). It seems we don't need it. Not sure what changed from before when it seemed necessary to prevent bugs.

This commit is contained in:
David A. Mellis 2007-02-03 15:36:30 +00:00
parent 6fa233b9ee
commit 2377bb9ddd

View File

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