Skip to content

Commit 7fb11ef

Browse files
committed
Decrease default maxWaits
1 parent 47edf1d commit 7fb11ef

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/SparkFun_Unicore_GNSS_Arduino_Library.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ class UM980
141141
bool staleEcef();
142142
void stopAutoReports(); // Delete all pointers to force reinit next time a helper function is called
143143

144-
Um980Result getGeodetic(uint16_t maxWaitMs = 1500);
145-
Um980Result updateEcef(uint16_t maxWaitMs = 1500);
146-
Um980Result updateDateTime(uint16_t maxWaitMs = 1500);
144+
Um980Result getGeodetic(uint16_t maxWaitMs = 500);
145+
Um980Result updateEcef(uint16_t maxWaitMs = 500);
146+
Um980Result updateDateTime(uint16_t maxWaitMs = 500);
147147

148148
Print *_debugPort = nullptr; // The stream to send debug messages to if enabled. Usually Serial.
149149

@@ -237,12 +237,12 @@ class UM980
237237
void serialPrintln(const char *command);
238238
void clearBuffer();
239239

240-
bool sendCommand(const char *command, uint16_t maxWaitMs = 1500);
241-
Um980Result sendQuery(const char *command, uint16_t maxWaitMs = 1500);
242-
Um980Result sendString(const char *command, uint16_t maxWaitMs = 1500);
240+
bool sendCommand(const char *command, uint16_t maxWaitMs = 500);
241+
Um980Result sendQuery(const char *command, uint16_t maxWaitMs = 500);
242+
Um980Result sendString(const char *command, uint16_t maxWaitMs = 500);
243243

244244
// Main helper functions
245-
double getLatitude(uint16_t maxWaitMs = 1500);
245+
double getLatitude(uint16_t maxWaitMs = 500);
246246
double getLongitude();
247247
double getAltitude();
248248
double getHorizontalSpeed();
@@ -291,7 +291,7 @@ class UM980
291291
char *getID();
292292
char *getCompileTime();
293293

294-
char *getVersionFull(uint16_t maxWaitMs = 1500);
294+
char *getVersionFull(uint16_t maxWaitMs = 500);
295295

296296
void unicoreHandler(uint8_t *data, uint16_t length);
297297

0 commit comments

Comments
 (0)