From f99e375a9a0f432f39eed08aa65bc8e57d6db344 Mon Sep 17 00:00:00 2001 From: batt Date: Tue, 18 Nov 2008 10:46:13 +0000 Subject: [PATCH] Fix pasto (bug #37). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1935 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/avr/drv/adc_avr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1