mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03: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:
@ -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);
|
||||
|
Reference in New Issue
Block a user