summaryrefslogtreecommitdiff
path: root/software/hhd70dongle/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'software/hhd70dongle/util.c')
-rw-r--r--software/hhd70dongle/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/software/hhd70dongle/util.c b/software/hhd70dongle/util.c
index b1f7e85..b0e6e89 100644
--- a/software/hhd70dongle/util.c
+++ b/software/hhd70dongle/util.c
@@ -73,7 +73,7 @@ void reset(void)
int16_t adc_read(uint8_t mux)
{
uint8_t low;
- char aref = 0b11000000;
+ char aref = 0b01000000;
ADCSRA = (1<<ADEN) | ADC_PRESCALER; // enable ADC
ADCSRB = (1<<ADHSM) | (mux & 0x20); // high speed mode
ADMUX = aref | (mux & 0x1F); // configure mux input