Commit 841277d
committed
sdcard_sd: Decode commands always as command
The SD card decoder predicts always the next token type from the
current token type. This is working if the SD card is responding as
expected.
But if the card is not responding, the prediction is wrong. A second
command token is decoded as a response token.
To fix this behavior the decoder state is set to St.GET_COMMAND_TOKEN,
if the current token is a command token.1 parent 71f4514 commit 841277d
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
0 commit comments