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 080b830 commit 49ce1b2Copy full SHA for 49ce1b2
Firmware/RTK_Surveyor/Begin.ino
@@ -171,14 +171,15 @@ void beginSD()
171
//Do a quick test to see if a card is present
172
int tries = 0;
173
int maxTries = 5;
174
- while (tries++ < maxTries)
+ while (tries < maxTries)
175
{
176
if (sdPresent() == true) break;
177
log_d("SD present failed. Trying again %d out of %d", tries + 1, maxTries);
178
179
//Max power up time is 250ms: https://www.kingston.com/datasheets/SDCIT-specsheet-64gb_en.pdf
180
//Max current is 200mA average across 1s, peak 300mA
181
delay(10);
182
+ tries++;
183
}
184
if (tries == maxTries) return;
185
0 commit comments