diff options
Diffstat (limited to 'source/Concept/Framework/robot.cpp')
-rw-r--r-- | source/Concept/Framework/robot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Concept/Framework/robot.cpp b/source/Concept/Framework/robot.cpp index a051dd4..5c673cb 100644 --- a/source/Concept/Framework/robot.cpp +++ b/source/Concept/Framework/robot.cpp @@ -95,8 +95,8 @@ uint16 Robot::GetADCValue(uint8 channel) uint32 result = 0;
- //Activate ADC and set division factor to 64
- ADCSRA = (1 << ADEN) | (1 << ADPS2) | (1 << ADPS1);
+ //Activate ADC and set division factor to 8
+ ADCSRA = (1 << ADEN) | (1 << ADPS1) | (1 << ADPS0);
//Set multiplexer channel
ADMUX = channel;
|