We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765b7c5 commit 16b2004Copy full SHA for 16b2004
src/sd.c
@@ -317,8 +317,8 @@ bool sd_card_inserted(void)
317
sd_mmc_err_t err = sd_mmc_check(0);
318
/* If initialization is ongoing, wait up to 1 second for it to initialize */
319
if (err == SD_MMC_INIT_ONGOING) {
320
- for (int i = 0; i < 10; ++i) {
321
- delay_ms(100);
+ for (int i = 0; i < 200; ++i) {
+ delay_ms(5);
322
err = sd_mmc_check(0);
323
if (err != SD_MMC_INIT_ONGOING) {
324
break;
0 commit comments