From 12fbcd8924df0188337af9d99fbe588beffd3232 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sat, 18 Apr 2026 16:43:00 -0400 Subject: [PATCH] shared-module/sdcardio/SDCard.c: revert cmd timeout to 500 ms --- shared-module/sdcardio/SDCard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared-module/sdcardio/SDCard.c b/shared-module/sdcardio/SDCard.c index 5d3c021f27ed4..3630e4ea16743 100644 --- a/shared-module/sdcardio/SDCard.c +++ b/shared-module/sdcardio/SDCard.c @@ -28,7 +28,9 @@ // https://www.taterli.com/wp-content/uploads/2017/05/Physical-Layer-Simplified-SpecificationV6.0.pdf // specifies timeouts for read (100 ms), write (250 ms), erase (depends on size), and other operations. -#define CMD_TIMEOUT_MS (250) +// cmd timeout was 250, but did not work on some cards. +// See https://github.com/adafruit/circuitpython/issues/10954 +#define CMD_TIMEOUT_MS (500) #define SPI_TIMEOUT_MS (250) // Init ready timeout. #define READY_TIMEOUT_MS (300)