Skip to content

Commit c844663

Browse files
committed
Only print SD report once SD is online
1 parent 6b20f88 commit c844663

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Firmware/RTK_Surveyor/Begin.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,7 @@ void beginSD()
397397
tries++;
398398
}
399399
if (tries == maxTries)
400-
{
401-
log_d("sdPresent failed");
402400
break; // Give up loop
403-
}
404401

405402
// If an SD card is present, allow SdFat to take over
406403
log_d("SD card detected - using SPI and SdFat");

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,9 @@ void updateSD()
10081008
}
10091009
else if (sdPresent() == true) // Poll card to see if a card is inserted
10101010
{
1011-
systemPrintln("SD inserted");
10121011
beginSD(); // Attempt to start SD
1012+
if(online.microSD == true)
1013+
systemPrintln("SD inserted");
10131014
}
10141015
}
10151016

0 commit comments

Comments
 (0)