diff options
author | neoraider <devnull@localhost> | 2007-04-16 00:01:04 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-04-16 00:01:04 +0200 |
commit | d02fbc84105ff2da74f03fd658ace8919e3e9437 (patch) | |
tree | a9ab5298ca9584e7eabc0bcb6d8b34ca1ad55726 /adc.cpp | |
parent | ccc0183cee7c410d668a0b1a9153b061a4785e42 (diff) | |
download | rc2007-rescue-d02fbc84105ff2da74f03fd658ace8919e3e9437.tar rc2007-rescue-d02fbc84105ff2da74f03fd658ace8919e3e9437.zip |
LineSensorArray + Srf10 added.
Diffstat (limited to 'adc.cpp')
-rw-r--r-- | adc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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))); |