Fix pasto (bug #37).
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 18 Nov 2008 10:46:13 +0000 (10:46 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 18 Nov 2008 10:46:13 +0000 (10:46 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1935 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/adc_avr.c

index 6d10b934c345fa7817737d885e4370820dfc7b88..a0796826856183a563d753dd9ccde1e40d96809d 100644 (file)
@@ -89,7 +89,7 @@
 INLINE void adc_hw_select_ch(uint8_t ch)
 {
        /* Set to 0 all mux registers */
-       ADMUX &= ~(BV(MUX3) | BV(MUX3) | BV(MUX2) | BV(MUX1) | BV(MUX0));
+       ADMUX &= ~(BV(MUX4) | BV(MUX3) | BV(MUX2) | BV(MUX1) | BV(MUX0));
 
        /* Select channel, only first 8 channel modes are supported for now */
        ADMUX |= (ch & 0x07);