From 71e4596ab14cb65c637ad6385cf0cbf6bd456613 Mon Sep 17 00:00:00 2001 From: Matt Sieren Date: Mon, 1 Jun 2015 20:52:47 +0200 Subject: [PATCH] Fixed Compile Error with RedBearLabs nRF51288 Fixed a macro definition which would cause the compiler to try to compile against an undefined function in the RBL SDK. --- usbhost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbhost.h b/usbhost.h index eba480e6..1d6f5955 100644 --- a/usbhost.h +++ b/usbhost.h @@ -56,7 +56,7 @@ public: #else SPI.setClockDivider(SPI_CLOCK_DIV2); // This will set the SPI frequency to 8MHz - it could be higher, but it is not supported in the old API #endif -#else +#elif !defined(RBL_NRF51822) SPI.setClockDivider(4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz #endif }