Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cbac52a

Browse files
authoredMar 3, 2025··
Merge pull request #448 from pennam/adc-fix
adc: analogReadResolution fix adc1 resolution
2 parents 0a88ec9 + 21a3dfd commit cbac52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cores/arduino/analog.cpp

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.