Skip to content

Commit d47d02a

Browse files
committed
Add defaults
1 parent ec4a7c4 commit d47d02a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SparkFun_u-blox_GNSS_Arduino_Library.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,11 +576,11 @@ class SFE_UBLOX_GNSS
576576
void setPacketCfgPayloadSize(size_t payloadSize); // Set packetCfgPayloadSize
577577

578578
//By default use the default I2C address, and use Wire port
579-
bool begin(TwoWire &wirePort = Wire, uint8_t deviceAddress = 0x42, uint16_t maxWait); //Returns true if module is detected
579+
bool begin(TwoWire &wirePort = Wire, uint8_t deviceAddress = 0x42, uint16_t maxWait = 1100); //Returns true if module is detected
580580
//serialPort needs to be perviously initialized to correct baud rate
581-
bool begin(Stream &serialPort, uint16_t maxWait); //Returns true if module is detected
581+
bool begin(Stream &serialPort, uint16_t maxWait = 1100); //Returns true if module is detected
582582
//SPI - supply instance of SPIClass, chip select pin and SPI speed (in Hz)
583-
bool begin(SPIClass &spiPort, uint8_t csPin, uint32_t spiSpeed, uint16_t maxWait);
583+
bool begin(SPIClass &spiPort, uint8_t csPin, uint32_t spiSpeed, uint16_t maxWait = 1100);
584584

585585
void end(void); //Stop all automatic message processing. Free all used RAM
586586

0 commit comments

Comments
 (0)