summaryrefslogtreecommitdiffstats
path: root/adc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adc.cpp')
-rw-r--r--adc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adc.cpp b/adc.cpp
index 192d36c..f7d5e04 100644
--- a/adc.cpp
+++ b/adc.cpp
@@ -9,7 +9,7 @@ void initADC() {
}
uint16_t getADCValue(int port) {
- ADMUX = (1<<REFS0)|(1<<ADLAR)|(port&0x07);
+ ADMUX = (1<<REFS0)|(port&0x07);
ADCSRA |= (1<<ADSC);
while(!(ADCSRA & (1<<ADIF)));