diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-25 00:52:45 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-25 00:52:45 +0000 |
commit | b68f7f16499a96e85c7cef4afd9da1a5c69e6a08 (patch) | |
tree | d26d7195168de8550665e36dd6a443f2f22ab704 /Projects/AVRISP-MKII/Lib/V2Protocol.c | |
parent | 871d9bf1af06fe208ca16cb3b19722bec1300e63 (diff) | |
download | lufa-b68f7f16499a96e85c7cef4afd9da1a5c69e6a08.tar.gz lufa-b68f7f16499a96e85c7cef4afd9da1a5c69e6a08.tar.bz2 lufa-b68f7f16499a96e85c7cef4afd9da1a5c69e6a08.zip |
Added explicit ADC channel masks for the standard set of ADC channels, as the single-ended channel MUX masks are not equal to the channel number on some AVR models. Changed demos to use the new channel masks when using the ADC driver.
Diffstat (limited to 'Projects/AVRISP-MKII/Lib/V2Protocol.c')
-rw-r--r-- | Projects/AVRISP-MKII/Lib/V2Protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.c b/Projects/AVRISP-MKII/Lib/V2Protocol.c index d6de77404..8d8f2003f 100644 --- a/Projects/AVRISP-MKII/Lib/V2Protocol.c +++ b/Projects/AVRISP-MKII/Lib/V2Protocol.c @@ -57,7 +57,7 @@ void V2Protocol_Init(void) /* Initialize the ADC converter for VTARGET level detection on supported AVR models */
ADC_Init(ADC_FREE_RUNNING | ADC_PRESCALE_128);
ADC_SetupChannel(VTARGET_ADC_CHANNEL);
- ADC_StartReading(VTARGET_ADC_CHANNEL | ADC_RIGHT_ADJUSTED | ADC_REFERENCE_AVCC);
+ ADC_StartReading(VTARGET_ADC_CHANNEL_MASK | ADC_RIGHT_ADJUSTED | ADC_REFERENCE_AVCC);
#endif
/* Millisecond timer initialization for managing the command timeout counter */
|