Content-Length: 232864 | pFad | https://github.com/adafruit/circuitpython/issues/9175
5Einit_card_v2
maximum potential timeout is ridiculously long
#9175
Fetched URL: https://github.com/adafruit/circuitpython/issues/9175
Alternative Proxies:
CircuitPython version
Code/REPL
Behavior
No output, just stuck, for around 3 minutes
Description
No output, just stuck, for around 3 minutes. I think I found the cause, read more below. But I don't know how to improve it.
Additional information
In
init_card_v2
, the maximum potential timeout is given byCMD_TIMEOUT * (50ms + 3 cmd with wait)
, which is200 * (50ms + 3 * 300ms) = 190 seconds
. That's more than 3 minutes.circuitpython/shared-module/sdcardio/SDCard.c
Lines 213 to 228 in 5836f11
The text was updated successfully, but these errors were encountered: