From 164888fd491a50478ddf939fa25df3130a775361 Mon Sep 17 00:00:00 2001 From: Nigel Vander Houwen Date: Tue, 23 Aug 2016 20:39:21 -0700 Subject: [PATCH] Fixed DDS.cpp to reference ADC channel 2 instead of old channel 0. --- src/DDS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DDS.cpp b/src/DDS.cpp index 8772fc7..9cae0d3 100644 --- a/src/DDS.cpp +++ b/src/DDS.cpp @@ -54,7 +54,7 @@ void DDS::start() { #endif // Configure the ADC here to automatically run and be triggered off Timer1 - ADMUX = _BV(REFS0) | _BV(ADLAR) | 0; // Channel 0, shift result left (ADCH used) + ADMUX = _BV(REFS0) | _BV(ADLAR) | 2; // Channel 2, shift result left (ADCH used) DDRC &= ~_BV(0); PORTC &= ~_BV(0); DIDR0 |= _BV(0);