Closed leethomason closed 6 years ago
To be a little more clear: I comment out this entire #define block at line 30:
#if defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
Sigh. Closing. There is a weird timing bug, but the code in question was a coincidence.
I'm using both a LISD3DH accelerometer (in SPI mode) and a Micro-SD card connected to a Teensy 3.2. With the SD library unmodified, initializing the SD card fails and also causes the accelerometer to fail.
Commenting out: USE_TEENSY3_SPI in Sd2Card.cpp allows both to succeed.
There is some side effect in the USE_TEENSY3_SPI configuration that causes the bus to fail; I haven't debugged further.