Skip to content

Commit b873df8

Browse files
committed
make internal arduino_adc array static
1 parent 96ad455 commit b873df8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/arduino/zephyrCommon.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ size_t pwm_pin_index(pin_size_t pinNumber) {
163163
DT_PHA_BY_IDX(DT_PATH(zephyr_user), p, i, pin)),
164164
#define ADC_CH_CFG(n,p,i) arduino_adc[i].channel_cfg,
165165

166-
const struct adc_dt_spec arduino_adc[] =
166+
static const struct adc_dt_spec arduino_adc[] =
167167
{ DT_FOREACH_PROP_ELEM(DT_PATH(zephyr_user), io_channels, ADC_DT_SPEC) };
168168

169169
/* io-channel-pins node provides a mapping digital pin numbers to adc channels */

0 commit comments

Comments
 (0)