From 81ef440a956312f9181064b4af9121ac5f34b475 Mon Sep 17 00:00:00 2001 From: Alejandro Tovar <67766008+alejandrotovar9@users.noreply.github.com> Date: Sun, 26 Nov 2023 12:35:26 -0400 Subject: [PATCH] Update Sd2PinMap.h Line 20 caused bugs on ESP32 boards. Adding the following code fixes the bug and allows use on Espressif based boards. The bug was found using Platformio on VSCode. --- src/utility/Sd2PinMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/Sd2PinMap.h b/src/utility/Sd2PinMap.h index 12d8926..f70d530 100644 --- a/src/utility/Sd2PinMap.h +++ b/src/utility/Sd2PinMap.h @@ -17,7 +17,7 @@ along with the Arduino SdFat Library. If not, see . */ -#if defined(__arm__) // Arduino Due Board follows +#if defined(__arm__) || defined(__XTENSA__) || defined(ESP32) // This line allows use on Espressif ESP32 boards #ifndef Sd2PinMap_h #define Sd2PinMap_h