Skip to content

Commit 81ef440

Browse files
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.
1 parent 1c56f58 commit 81ef440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/Sd2PinMap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
along with the Arduino SdFat Library. If not, see
1818
<http://www.gnu.org/licenses/>.
1919
*/
20-
#if defined(__arm__) // Arduino Due Board follows
20+
#if defined(__arm__) || defined(__XTENSA__) || defined(ESP32) // This line allows use on Espressif ESP32 boards
2121

2222
#ifndef Sd2PinMap_h
2323
#define Sd2PinMap_h

0 commit comments

Comments
 (0)