From cafc527e8cd922f3f49695eb818ad76d937fe982 Mon Sep 17 00:00:00 2001 From: oclyke Date: Thu, 26 Mar 2020 10:10:19 -0600 Subject: [PATCH] fix extern declaration of analog channel and config maps fixes #143 but can't explain exactly why --- cores/arduino/ard_sup/ap3_analog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/arduino/ard_sup/ap3_analog.h b/cores/arduino/ard_sup/ap3_analog.h index 68d40b0..9c0dca4 100644 --- a/cores/arduino/ard_sup/ap3_analog.h +++ b/cores/arduino/ard_sup/ap3_analog.h @@ -30,8 +30,8 @@ SOFTWARE. #define AP3_USE_DEFAULT_TIMER_NUM (0xFF) extern const ap3_analog_pad_map_elem_t ap3_analog_map[AP3_ANALOG_PADS]; -extern const ap3_analog_channel_map_elem_t ap3_analog_channel_map[AP3_ANALOG_PADS]; -extern ap3_analog_configure_map_elem_t ap3_analog_configure_map[AP3_ANALOG_PADS]; +extern const ap3_analog_channel_map_elem_t ap3_analog_channel_map[AP3_ANALOG_CHANNELS]; +extern ap3_analog_configure_map_elem_t ap3_analog_configure_map[AP3_ANALOG_CHANNELS]; // ADC Device Handle. static void *g_ADCHandle;