Skip to content

Commit ccbda88

Browse files
committed
sdcard: Send stop bit after multi-block read/write.
Signed-off-by: Grigory Fadeev <10079765+c0ffee2code@users.noreply.github.com>
1 parent 6ae440a commit ccbda88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/drivers/storage/sdcard/sdcard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def cmd(self, cmd, arg, crc, final=0, release=True, skip1=False):
154154
buf[2] = arg >> 16
155155
buf[3] = arg >> 8
156156
buf[4] = arg
157-
buf[5] = crc
157+
buf[5] = crc | 0x01 # ensure stop bit is always set
158158
self.spi.write(buf)
159159

160160
if skip1:

0 commit comments

Comments
 (0)