Skip to content

Commit 6368f50

Browse files
committed
mosaic-X5 : allow more retries when removing SD card
1 parent 1c4ea7a commit 6368f50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Firmware/RTK_Everywhere/GNSS_Mosaic.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2627,7 +2627,11 @@ bool GNSS_MOSAIC::updateSD()
26272627

26282628
// Allow many retries
26292629
int retries = 0;
2630-
int retryLimit = 20;
2630+
int retryLimit = 30;
2631+
2632+
// If the card has been removed, the soft reset takes extra time. Allow more retries
2633+
if (!previousCardPresent)
2634+
retryLimit = 40;
26312635

26322636
// Set COM4 to: CMD input (only), SBF output (only)
26332637
while (!sendWithResponse("sdio,COM4,CMD,SBF\n\r", "DataInOut"))

0 commit comments

Comments
 (0)