From 4cf9f34228904acb4ebfae98fb34cf6bc17295a8 Mon Sep 17 00:00:00 2001 From: Matt Sieren Date: Sat, 22 Nov 2014 09:53:59 +0100 Subject: [PATCH] Moved include for nRF51822 Moved the include into the right file. --- settings.h | 2 +- usbhost.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/settings.h b/settings.h index e3d0ed1d..e6ed5cf1 100644 --- a/settings.h +++ b/settings.h @@ -137,7 +137,7 @@ e-mail : support@circuitsathome.com #define USING_SPI4TEENSY3 0 #endif -#if defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__) +#if (defined(ARDUINO_SAM_DUE) && defined(__SAM3X8E__)) || defined(RBL_NRF51822) #include // Use the Arduino SPI library for the Arduino Due #endif diff --git a/usbhost.h b/usbhost.h index 46ef1346..f35bc0f4 100644 --- a/usbhost.h +++ b/usbhost.h @@ -27,9 +27,7 @@ e-mail : support@circuitsathome.com #include #endif -#if defined(RBL_NRF51822) -#include "SPI.H" -#endif + /* SPI initialization */ template< typename SPI_CLK, typename SPI_MOSI, typename SPI_MISO, typename SPI_SS > class SPi { public: