From 6f536f4d6d24d0b7de5d4107921e4e0bc6604c0a Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Tue, 3 Sep 2024 17:29:20 -0400 Subject: [PATCH] Update Adafruit_FlashTransport_QSPI_SAMD.cpp Support SAMD51 devices using flash connected to standard SPI instead of QSPI --- src/qspi/Adafruit_FlashTransport_QSPI_SAMD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qspi/Adafruit_FlashTransport_QSPI_SAMD.cpp b/src/qspi/Adafruit_FlashTransport_QSPI_SAMD.cpp index 9e0546f..90fa2a9 100644 --- a/src/qspi/Adafruit_FlashTransport_QSPI_SAMD.cpp +++ b/src/qspi/Adafruit_FlashTransport_QSPI_SAMD.cpp @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -#ifdef __SAMD51__ +#if defined(__SAMD51__) && defined(EXTERNAL_FLASH_USE_QSPI) #include "Adafruit_FlashTransport.h" #include "wiring_private.h"