From 4ae35c9a744550bff75d97cd7a9994db5b4089dc Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 3 Nov 2015 11:46:28 -0200 Subject: [PATCH] AP_ADC: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1 --- libraries/AP_ADC/examples/AP_ADC_test/AP_ADC_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_ADC/examples/AP_ADC_test/AP_ADC_test.cpp b/libraries/AP_ADC/examples/AP_ADC_test/AP_ADC_test.cpp index 1858c19445..60e3b69452 100644 --- a/libraries/AP_ADC/examples/AP_ADC_test/AP_ADC_test.cpp +++ b/libraries/AP_ADC/examples/AP_ADC_test/AP_ADC_test.cpp @@ -17,10 +17,11 @@ uint32_t timer; -#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_LINUX -/* Only build this sketch for APM1 and Linux */ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); +/* Only build this sketch for Linux */ +#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX + AP_ADC_ADS7844 adc; void setup() @@ -106,9 +107,8 @@ void loop() } } -#else // Non-APM1: -#warning AP_ADC_test built as stub for APM2 -const AP_HAL::HAL& hal = AP_HAL_AVR_APM2; +#else +#warning AP_ADC_test built as stub void setup () {} void loop () {} #endif // CONFIG_HAL_BOARD