Skip to content

Commit 0f97cd6

Browse files
committed
sdcard: Set stop bit in SPI command frame.
fix in upstream repo: micropython/micropython-lib#1079
1 parent eb9f2b6 commit 0f97cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telemetry/sdcard.py

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

161161
if skip1:

0 commit comments

Comments
 (0)