From cdbbea6c52cebadd4d3757c239454abdc99090b5 Mon Sep 17 00:00:00 2001 From: Deepika Date: Mon, 10 Jul 2017 15:59:33 -0500 Subject: [PATCH] Fix: SD read failed for Strontium Card CMD9 fails for few cards if spi.write is performed during deslect of card Card immediately sends start packet token, which goes missing in this dummy write to SPI. Should not clock SPI bus in deselect operation. --- SDBlockDevice.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/SDBlockDevice.cpp b/SDBlockDevice.cpp index ba45dc296c..ab170ae53e 100644 --- a/SDBlockDevice.cpp +++ b/SDBlockDevice.cpp @@ -1010,7 +1010,6 @@ void SDBlockDevice::_select() { void SDBlockDevice::_deselect() { _cs = 1; - _spi.write(0xFF); _spi.unlock(); } #endif /* DEVICE_SPI */