Skip to content

Commit 246b9ff

Browse files
author
Owen
authored
Merge pull request #145 from sparkfun/fix-analogread-loop
fix extern declaration of analog channel and config maps
2 parents 9a42ce0 + cafc527 commit 246b9ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/ard_sup/ap3_analog.h

+2-2
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)