We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c78c6b commit b5f0695Copy full SHA for b5f0695
cores/arduino/zephyrCommon.cpp
@@ -170,7 +170,7 @@ const struct adc_dt_spec arduino_adc[] =
170
const pin_size_t arduino_analog_pins[] =
171
{ DT_FOREACH_PROP_ELEM(DT_PATH(zephyr_user), adc_pin_gpios, ADC_PINS) };
172
173
-struct adc_channel_cfg channel_cfg[ARRAY_SIZE(arduino_analog_pins)] =
+struct adc_channel_cfg channel_cfg[] =
174
{ DT_FOREACH_PROP_ELEM(DT_PATH(zephyr_user), io_channels, ADC_CH_CFG) };
175
176
size_t analog_pin_index(pin_size_t pinNumber) {
0 commit comments