configs/stm32f429i-disco/highpri/defconfig and net/procfs/netdev_statistics.c: Eliminate some warnings found in build testing.

This commit is contained in:
Gregory Nutt 2018-11-25 18:42:39 -06:00
parent 80e7107c9f
commit 41d5e31390
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ CONFIG_ARCH_BOARD_STM32F429I_DISCO=y
CONFIG_ARCH_BUTTONS=y
CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32F429Z=y
CONFIG_ARCH_FPU=y
CONFIG_ARCH_HIPRI_INTERRUPT=y
CONFIG_ARCH_RAMVECTORS=y
CONFIG_ARCH_STACKDUMP=y
@ -47,6 +48,7 @@ CONFIG_STM32_ADC1_DMA_CFG=1
CONFIG_STM32_ADC1_INJECTED_CHAN=1
CONFIG_STM32_ADC_LL_OPS=y
CONFIG_STM32_ADC_NOIRQ=y
CONFIG_STM32_CCMEXCLUDE=y
CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG=y
CONFIG_STM32_DMA2=y
CONFIG_STM32_FSMC=y

View File

@ -153,11 +153,13 @@ static int netprocfs_radio_linklayer(FAR struct netprocfs_file_s *netfile,
len += snprintf(&netfile->line[len], NET_LINELEN - len,
"%02x", addr->nv_addr[0]);
#if RADIO_MAX_ADDRLEN > 1 /* Avoids a warning */
for (i = 1; i < addr->nv_addrlen; i++)
{
len += snprintf(&netfile->line[len], NET_LINELEN - len,
":%02x", addr->nv_addr[i]);
}
#endif
}
return len;