File tree 2 files changed +5
-1
lines changed 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ void beginSD()
384
384
385
385
// Do a quick test to see if a card is present
386
386
int tries = 0 ;
387
- int maxTries = 5 ;
387
+ int maxTries = 2 ;
388
388
while (tries < maxTries)
389
389
{
390
390
if (sdPresent () == true )
@@ -397,7 +397,10 @@ void beginSD()
397
397
tries++;
398
398
}
399
399
if (tries == maxTries)
400
+ {
401
+ log_d (" sdPresent failed" );
400
402
break ; // Give up loop
403
+ }
401
404
402
405
// If an SD card is present, allow SdFat to take over
403
406
log_d (" SD card detected - using SPI and SdFat" );
Original file line number Diff line number Diff line change 37
37
// within a reasonable amount of time, there is no SD card on the bus.
38
38
// Returns false if not card is detected
39
39
// Returns true if a card responds
40
+ // This test takes approximately 13ms to complete
40
41
bool sdPresent (void )
41
42
{
42
43
if (productVariant == REFERENCE_STATION)
You can’t perform that action at this time.
0 commit comments