Skip to content

Commit b8e4fc6

Browse files
authored
Merge pull request #10956 from dhalbert/increase-sdcard-cmd-timeout
shared-module/sdcardio/SDCard.c: revert cmd timeout to 500 ms
2 parents 656f540 + 12fbcd8 commit b8e4fc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared-module/sdcardio/SDCard.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828

2929
// https://www.taterli.com/wp-content/uploads/2017/05/Physical-Layer-Simplified-SpecificationV6.0.pdf
3030
// specifies timeouts for read (100 ms), write (250 ms), erase (depends on size), and other operations.
31-
#define CMD_TIMEOUT_MS (250)
31+
// cmd timeout was 250, but did not work on some cards.
32+
// See https://github.com/adafruit/circuitpython/issues/10954
33+
#define CMD_TIMEOUT_MS (500)
3234
#define SPI_TIMEOUT_MS (250)
3335
// Init ready timeout.
3436
#define READY_TIMEOUT_MS (300)

0 commit comments

Comments
 (0)