SdFat icon indicating copy to clipboard operation
SdFat copied to clipboard

Long timeout calling begin() on Teensy 4.1 when no card present

Open noisymime opened this issue 10 months ago • 5 comments

Calling sd.begin() on a Teensy 4.1 without a card present appears to take 2 seconds before it times out and the call returns. Compare this to a Teensy 3.5 where if no card is inserted then the call to .begin() appears to return immediately.

This 2s timeout is nearly double the time the call takes when a card is present (Around 1.1s in my testing).

Is it possible to reduce this time on Teensy 4.1 or otherwise detect in advance whether a card is inserted? I'm currently calling this on startup in a sketch, but having a 2s delay when booting isn't ideal.

noisymime avatar Apr 15 '24 02:04 noisymime