From 6ac44d4c411eb0c1ec31ac3b5dcfe88ef45e66af Mon Sep 17 00:00:00 2001 From: Blackaddr Date: Tue, 29 Nov 2022 20:46:37 -0500 Subject: [PATCH] fixup in DmaSpi for defined() checks --- src/DmaSpi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DmaSpi.h b/src/DmaSpi.h index e383105..d895976 100644 --- a/src/DmaSpi.h +++ b/src/DmaSpi.h @@ -114,7 +114,7 @@ class ActiveLowChipSelect : public AbstractChipSelect }; -#if defined(__MK66FX1M0__) || (defined(__IMXRT1062__) && defined(ARDUINO_TEENSY_MICROMOD)) +#if defined(__MK66FX1M0__) || (defined(__IMXRT1062__) && (defined(ARDUINO_TEENSY_MICROMOD) || defined(ARDUINO_TEENSY41))) class ActiveLowChipSelect1 : public AbstractChipSelect { public: @@ -789,7 +789,7 @@ private: }; extern DmaSpi0 DMASPI0; -#if (defined(__IMXRT1062__) && defined(ARDUINO_TEENSY_MICROMOD)) +#if (defined(__IMXRT1062__) && (defined(ARDUINO_TEENSY_MICROMOD) || defined (ARDUINO_TEENSY41))) // On T4.X, SPI1 is LPSPI3 class DmaSpi1 : public AbstractDmaSpi