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 50d2407 commit 4d13694Copy full SHA for 4d13694
src/SparkFun_Unicore_GNSS_Arduino_Library.cpp
@@ -189,24 +189,6 @@ bool UM980::isConnected()
189
{
190
for (int x = 0; x < 3; x++)
191
192
- disableOutput(); // Tell unit to stop transmitting
193
-
194
- // Wait until serial stops coming in
195
- uint16_t maxTime = 500;
196
- unsigned long startTime = millis();
197
- while (1)
198
- {
199
- delay(50);
200
201
- if (serialAvailable() == 0)
202
- break;
203
- while (serialAvailable())
204
- serialRead();
205
206
- if (millis() - startTime > maxTime)
207
- return (false);
208
- }
209
210
if (sendQuery("MODE") == UM980_RESULT_OK)
211
return (true);
212
debugPrintf("UM980 failed to connect. Trying again.");
0 commit comments