Skip to content

Commit 5ff134f

Browse files
committed
MPAE-19362: Fixed ADC_CHANNEL define to use header define.
1 parent fadecba commit 5ff134f

File tree

1 file changed

+1
-1
lines changed
  • atmega4809-adc-basics-mplab.X

1 file changed

+1
-1
lines changed

atmega4809-adc-basics-mplab.X/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define MAX_VOL 2.5 // VREF=2.5V
1313
#define RES_10BIT 0x3FF
14-
#define ADC_CHANNEL 6
14+
#define ADC_CHANNEL ADC_CHANNEL ADC_MUXPOS_AIN6_gc
1515

1616
uint16_t adc_result = 0;
1717
float calc_volt;

0 commit comments

Comments
 (0)