Skip to content

Commit 73b09a0

Browse files
committed
Remove pin value change on arbitrary condition.
1 parent 993398c commit 73b09a0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cores/arduino/wiring_analog.c

-4
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ int analogRead(pin_size_t pin)
129129
{
130130
uint32_t valueRead = 0;
131131

132-
if (pin < A0) {
133-
pin += A0;
134-
}
135-
136132
pinPeripheral(pin, PIO_ANALOG);
137133

138134
// Disable DAC, if analogWrite() was used previously to enable the DAC

0 commit comments

Comments
 (0)