Skip to content

Commit cafc527

Browse files
author
oclyke
committed
fix extern declaration of analog channel and config maps
fixes #143 but can't explain exactly why
1 parent 9a42ce0 commit cafc527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/ard_sup/ap3_analog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ SOFTWARE.
3030
#define AP3_USE_DEFAULT_TIMER_NUM (0xFF)
3131

3232
extern const ap3_analog_pad_map_elem_t ap3_analog_map[AP3_ANALOG_PADS];
33-
extern const ap3_analog_channel_map_elem_t ap3_analog_channel_map[AP3_ANALOG_PADS];
34-
extern ap3_analog_configure_map_elem_t ap3_analog_configure_map[AP3_ANALOG_PADS];
33+
extern const ap3_analog_channel_map_elem_t ap3_analog_channel_map[AP3_ANALOG_CHANNELS];
34+
extern ap3_analog_configure_map_elem_t ap3_analog_configure_map[AP3_ANALOG_CHANNELS];
3535

3636
// ADC Device Handle.
3737
static void *g_ADCHandle;

0 commit comments

Comments
 (0)