Skip to content

Commit 4d13694

Browse files
committed
Remove disableOutput from isConnected
1 parent 50d2407 commit 4d13694

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/SparkFun_Unicore_GNSS_Arduino_Library.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -189,24 +189,6 @@ bool UM980::isConnected()
189189
{
190190
for (int x = 0; x < 3; x++)
191191
{
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-
210192
if (sendQuery("MODE") == UM980_RESULT_OK)
211193
return (true);
212194
debugPrintf("UM980 failed to connect. Trying again.");

0 commit comments

Comments
 (0)