summaryrefslogtreecommitdiffstats
path: root/adc.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-04-16 00:01:04 +0200
committerneoraider <devnull@localhost>2007-04-16 00:01:04 +0200
commitd02fbc84105ff2da74f03fd658ace8919e3e9437 (patch)
treea9ab5298ca9584e7eabc0bcb6d8b34ca1ad55726 /adc.cpp
parentccc0183cee7c410d668a0b1a9153b061a4785e42 (diff)
downloadrc2007-rescue-d02fbc84105ff2da74f03fd658ace8919e3e9437.tar
rc2007-rescue-d02fbc84105ff2da74f03fd658ace8919e3e9437.zip
LineSensorArray + Srf10 added.
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)));