From a80121096e6c86072be64ed5d37f342f0330aaf1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 24 Nov 2014 11:29:22 -0600 Subject: Nucleo F4x1RE: Typos in previously untested code. message() does not exist, return value from void function, missing inclusion of errno.h. From Sébastien Lorquet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuttx/configs/nucleo-f4x1re/src/stm32_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c b/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c index b08016903..70571dc93 100644 --- a/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c +++ b/nuttx/configs/nucleo-f4x1re/src/stm32_spi.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -110,8 +111,7 @@ void weak_function stm32_spiinitialize(void) g_spi1 = up_spiinitialize(1); if (!g_spi1) { - message("[boot] FAILED to initialize SPI port 1\n"); - return -ENODEV; + spidbg("[boot] FAILED to initialize SPI port 1\n"); } #ifdef CONFIG_WL_CC3000 -- cgit v1.2.3