Skip to content

Commit

Permalink
fix for #6
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Nov 1, 2019
1 parent ced62d2 commit 959a207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Adafruit_SPIDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define Adafruit_SPIDevice_h

// some modern SPI definitions don't have BitOrder enum
#if defined(__AVR__) || defined(ESP8266) || defined(TEENSYDUINO)
#if (defined(__AVR__) && !defined(ARDUINO_ARCH_MEGAAVR)) || defined(ESP8266) || defined(TEENSYDUINO)
typedef enum _BitOrder {
SPI_BITORDER_MSBFIRST = MSBFIRST,
SPI_BITORDER_LSBFIRST = LSBFIRST,
Expand All @@ -20,7 +20,7 @@ typedef enum _BitOrder {
#endif

// Some platforms have a BitOrder enum but its named MSBFIRST/LSBFIRST
#if defined(ARDUINO_ARCH_SAMD) || defined(__SAM3X8E__) || defined(NRF52_SERIES) || defined(ARDUINO_ARCH_ARDUINO_CORE_STM32)
#if defined(ARDUINO_ARCH_SAMD) || defined(__SAM3X8E__) || defined(NRF52_SERIES) || defined(ARDUINO_ARCH_ARDUINO_CORE_STM32) || defined(ARDUINO_ARCH_MEGAAVR)
#define SPI_BITORDER_MSBFIRST MSBFIRST
#define SPI_BITORDER_LSBFIRST LSBFIRST
#endif
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit BusIO
version=1.0.8
version=1.0.9
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=This is a library for abstracting away UART, I2C and SPI interfacing
Expand Down

0 comments on commit 959a207

Please sign in to comment.