File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,9 @@ void beginBoard()
363
363
364
364
void beginSD ()
365
365
{
366
+ if (sdCardForcedOffline == true )
367
+ return ;
368
+
366
369
bool gotSemaphore;
367
370
368
371
online.microSD = false ;
@@ -447,6 +450,8 @@ void beginSD()
447
450
systemPrintln (" SD init failed - using SPI and SdFat. Is card formatted?" );
448
451
digitalWrite (pin_microSD_CS, HIGH); // Be sure SD is deselected
449
452
453
+ sdCardForcedOffline = true ; // Prevent future scans for SD cards
454
+
450
455
// Check reset count and prevent rolling reboot
451
456
if (settings.resetCount < 5 )
452
457
{
Original file line number Diff line number Diff line change @@ -720,6 +720,9 @@ unsigned long shutdownNoChargeTimer = 0;
720
720
721
721
RtkMode_t rtkMode; // Mode of operation
722
722
723
+ bool sdCardForcedOffline = false ; // Goes true if a isPresent() test passes, but then sdFat fails to mount SD card.
724
+ // See issue: https://github.com/sparkfun/SparkFun_RTK_Firmware/issues/758
725
+
723
726
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
724
727
725
728
#define DEAD_MAN_WALKING_ENABLED 0
You can’t perform that action at this time.
0 commit comments