Skip to content

Commit 21a3dfd

Browse files
committed
adc: analogReadResolution fix adc1 resolution
1 parent 926389a commit 21a3dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/analog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ void analogReadResolution(int bits) {
645645
default:
646646
_analogRequestedReadResolution = 12;
647647
adc.cfg.resolution = ADC_RESOLUTION_12_BIT;
648-
adc1.cfg.resolution = ADC_RESOLUTION_10_BIT;
648+
adc1.cfg.resolution = ADC_RESOLUTION_12_BIT;
649649
break;
650650
}
651651

0 commit comments

Comments
 (0)