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
1 changed files with 1 additions and 1 deletions

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