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.
pull/7774/head
Deepika 2017-07-10 15:59:33 -05:00
parent 29861960ca
commit cdbbea6c52
1 changed files with 0 additions and 1 deletions

View File

@ -1010,7 +1010,6 @@ void SDBlockDevice::_select() {
void SDBlockDevice::_deselect() { void SDBlockDevice::_deselect() {
_cs = 1; _cs = 1;
_spi.write(0xFF);
_spi.unlock(); _spi.unlock();
} }
#endif /* DEVICE_SPI */ #endif /* DEVICE_SPI */