From 8a4b0608734f53d5fd4d8f117bf524baa33e6088 Mon Sep 17 00:00:00 2001 From: deweibel Date: Fri, 10 Sep 2010 23:58:19 +0000 Subject: [PATCH] correct typo git-svn-id: https://arducopter.googlecode.com/svn/trunk@450 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/APM_ADC/APM_ADC.cpp | 2 +- libraries/APM_ADC/APM_ADC.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/APM_ADC/APM_ADC.cpp b/libraries/APM_ADC/APM_ADC.cpp index 4e672d8e0f..e4e6855150 100644 --- a/libraries/APM_ADC/APM_ADC.cpp +++ b/libraries/APM_ADC/APM_ADC.cpp @@ -138,7 +138,7 @@ int APM_ADC_Class::Ch(unsigned char ch_num) cli(); // We stop interrupts to read the variables if (adc_counter[ch_num]>0) - result = adc_value[ch_num]/adc_counter[ch_num]); + result = adc_value[ch_num]/adc_counter[ch_num]; else result = 0; adc_value[ch_num] = 0; // Initialize for next reading diff --git a/libraries/APM_ADC/APM_ADC.h b/libraries/APM_ADC/APM_ADC.h index a6d8838d53..a37d3a97a5 100644 --- a/libraries/APM_ADC/APM_ADC.h +++ b/libraries/APM_ADC/APM_ADC.h @@ -16,7 +16,7 @@ class APM_ADC_Class public: APM_ADC_Class(); // Constructor void Init(); - float Ch(unsigned char ch_num); // HJI Changed from int to float + int Ch(unsigned char ch_num); }; extern APM_ADC_Class APM_ADC;