Do not call spisdcard_select for CMD0.

This commit is contained in:
Rouven Broszeit 2022-06-23 16:17:05 +02:00
parent ee1af96ab7
commit fa234e8ed8
1 changed files with 1 additions and 1 deletions

View File

@ -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;