From eca360bf4204d95093a7c9e54e8babdf180df9ae Mon Sep 17 00:00:00 2001 From: Peter Van Hoyweghen Date: Fri, 10 Jul 2015 14:02:47 +0200 Subject: [PATCH] Fix typo: SPI_CLOCK_DIV128 --- .../examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino b/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino index 7e7a33c4f..215a16bf7 100644 --- a/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino +++ b/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino @@ -54,14 +54,9 @@ #define LED_PMODE 7 #define PROG_FLICKER true -#if defined(ARDUINO_ARCH_SAM) or defined(ARDUINO_ARCH_SAMD) - -#define SPI_CLOCK_DIV_MAX 255 - -#else +#if !defined(ARDUINO_ARCH_SAM) and !defined(ARDUINO_ARCH_SAMD) #define USE_HARDWARE_SPI -#define SPI_CLOCK_DIV_MAX SPI_CLOCK_DIV_128 #endif @@ -101,8 +96,11 @@ void pulse(int pin, int times); #ifdef USE_HARDWARE_SPI #include "SPI.h" +#define SPI_CLOCK_DIV_MAX SPI_CLOCK_DIV128 #else +#define SPI_CLOCK_DIV_MAX 255 + class BitBangedSPI { public: void setDataMode(uint8_t dataMode) {