From a819f24d00ca34541333eb7d6280b1187d6000a8 Mon Sep 17 00:00:00 2001 From: caternuson Date: Tue, 28 Sep 2021 12:15:40 -0700 Subject: [PATCH] fix spi preproc guards --- Adafruit_SPIDevice.cpp | 5 ++--- library.properties | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Adafruit_SPIDevice.cpp b/Adafruit_SPIDevice.cpp index f39627a..f560756 100644 --- a/Adafruit_SPIDevice.cpp +++ b/Adafruit_SPIDevice.cpp @@ -1,9 +1,8 @@ +#if (defined(SPI_INTERFACES_COUNT) && (SPI_INTERFACES_COUNT > 0)) + #include #include -#if !defined(SPI_INTERFACES_COUNT) || \ - (defined(SPI_INTERFACES_COUNT) && (SPI_INTERFACES_COUNT > 0)) - //#define DEBUG_SERIAL Serial /*! diff --git a/library.properties b/library.properties index 9203197..4e726a3 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit BusIO -version=1.9.2 +version=1.9.3 author=Adafruit maintainer=Adafruit sentence=This is a library for abstracting away UART, I2C and SPI interfacing