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

This commit is contained in:
Gregory Nutt 2014-11-24 11:29:22 -06:00
parent 8c05e06046
commit 0dae05bda4

View File

@ -42,6 +42,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <debug.h>
#include <errno.h>
#include <nuttx/spi/spi.h>
#include <arch/board/board.h>
@ -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