Skip to content

Commit eb17bff

Browse files
authored
Merge pull request #54 from RetiredWizard/multi-buffer-write-fix
Fix for occasional write hangs
2 parents 54827b8 + 52163b0 commit eb17bff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adafruit_sdcard.py

+1
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ def writeblocks(self, start_block: int, buf: ReadableBuffer) -> int:
500500
)
501501
offset += 512
502502
nblocks -= 1
503+
self._wait_for_ready(card)
503504
self._cmd_nodata(card, _TOKEN_STOP_TRAN, 0x0)
504505
return 0
505506

0 commit comments

Comments
 (0)