diff --git a/settings.h b/settings.h index 82c07036..d5f4a4eb 100644 --- a/settings.h +++ b/settings.h @@ -133,6 +133,6 @@ e-mail : support@circuitsathome.com #include // Use the Arduino SPI library #endif #if defined(__PIC32MX__) || defined(__PIC32MZ__) -#include <../../libraries/SPI/SPI.h> // Hack to use the SPI library +#include <../../../../hardware/pic32/libraries/SPI/SPI.h> // Hack to use the SPI library #endif #endif /* SETTINGS_H */ diff --git a/usbhost.h b/usbhost.h index f0a6962e..c4b8bb3d 100644 --- a/usbhost.h +++ b/usbhost.h @@ -45,7 +45,7 @@ public: SPI_SS::Set(); SPI.begin(); #if defined(__MIPSEL__) - SPI.setClockDivider(2); + SPI.setClockDivider(1); #else SPI.setClockDivider(4); // Set speed to 84MHz/4=21MHz - the MAX3421E can handle up to 26MHz #endif