Fixed minor bug in SD driver that only failed with emulator.

This commit is contained in:
claudiol 2018-09-28 17:58:50 -04:00
parent 7e6e64a140
commit 22ec6e88ca

View file

@ -940,7 +940,7 @@ if(!SDSendACmdLongResp(card->Rca,51,card->Rca,(int *)CSD)) { halFlags&=~HAL_NOCL
return FALSE; }
card->BusWidth=0;
if( (CSD[1]&0xf0000) == 0xf0000) {
if( (CSD[1]&0x40000) ) {
// ENABLE WIDE BUS SUPPORT
if(!SDSendACmdShortResp(card->Rca,6,2,(int *)CSD)) { halFlags&=~HAL_NOCLOCKCHANGE;
return FALSE; }