diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c index df3a2452d0a..069219c7719 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c +++ b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_adc.c @@ -67,7 +67,7 @@ * ADC1: {5, 10, 12, 13, 15}; */ -static const uint8_t g_adc1_chanlist[ADC1_NCHANNELS] = +static const uint8_t g_adc1_chanlist[ADC1_NCHANNELS] = { 5, 10, 12, 13, 15 }; diff --git a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c index 5c8182ae706..7a5119b8c1f 100644 --- a/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c +++ b/boards/arm/stm32h7/nucleo-h743zi2/src/stm32_qencoder.c @@ -50,7 +50,7 @@ int stm32_qencoder_initialize(const char *devpath, int timer) { - int ret = 0; + int ret; /* Initialize a quadrature encoder interface. */