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:
parent
6fa233b9ee
commit
2377bb9ddd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user