From: batt Date: Tue, 18 Nov 2008 10:46:13 +0000 (+0000) Subject: Fix pasto (bug #37). X-Git-Tag: 2.1.0~747 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f99e375a9a0f432f39eed08aa65bc8e57d6db344;p=bertos.git Fix pasto (bug #37). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1935 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/adc_avr.c b/bertos/cpu/avr/drv/adc_avr.c index 6d10b934..a0796826 100644 --- a/bertos/cpu/avr/drv/adc_avr.c +++ b/bertos/cpu/avr/drv/adc_avr.c @@ -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);