This repository was archived by the owner on Jan 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -960,7 +960,7 @@ void SFE_UBLOX_GPS::sendSerialCommand(ubxPacket outgoingUBX)
960
960
}
961
961
962
962
// Returns true if I2C device ack's
963
- boolean SFE_UBLOX_GPS::isConnected ()
963
+ boolean SFE_UBLOX_GPS::isConnected (uint16_t maxWait )
964
964
{
965
965
if (commType == COMM_TYPE_I2C)
966
966
{
@@ -975,7 +975,7 @@ boolean SFE_UBLOX_GPS::isConnected()
975
975
packetCfg.len = 0 ;
976
976
packetCfg.startingSpot = 0 ;
977
977
978
- return sendCommand (packetCfg);
978
+ return sendCommand (packetCfg, maxWait );
979
979
}
980
980
return false ;
981
981
}
Original file line number Diff line number Diff line change @@ -431,7 +431,9 @@ class SFE_UBLOX_GPS
431
431
// serialPort needs to be perviously initialized to correct baud rate
432
432
boolean begin (Stream &serialPort); // Returns true if module is detected
433
433
434
- boolean isConnected (); // Returns turn if device answers on _gpsI2Caddress address
434
+ // Returns true if device answers on _gpsI2Caddress address or via Serial
435
+ // maxWait is only used for Serial
436
+ boolean isConnected (uint16_t maxWait = 1100 );
435
437
436
438
boolean checkUblox (); // Checks module with user selected commType
437
439
boolean checkUbloxI2C (); // Method for I2C polling of data, passing any new bytes to process()
You can’t perform that action at this time.
0 commit comments