Do not call spisdcard_select for CMD0.
This commit is contained in:
parent
ee1af96ab7
commit
fa234e8ed8
|
@ -173,7 +173,7 @@ static uint8_t spisdcardsend_cmd(uint8_t cmd, uint32_t arg)
|
|||
}
|
||||
|
||||
/* Select the card and wait for it, except for CMD12: STOP_TRANSMISSION */
|
||||
if (cmd != CMD12) {
|
||||
if (cmd != CMD12 && cmd != CMD0) {
|
||||
spisdcard_deselect();
|
||||
if (spisdcard_select() == 0)
|
||||
return 0xff;
|
||||
|
|
Loading…
Reference in New Issue