Skip to content

Commit c486d75

Browse files
committed
Revert the max timeout back to 1500ms
1 parent f6e9868 commit c486d75

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Diff for: src/SparkFun_Unicore_GNSS_Arduino_Library.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ void um980ProcessMessage(SEMP_PARSE_STATE *parse, uint16_t type)
421421

422422
if (ptrUM980->_printRxMessages)
423423
{
424-
425424
// Display the raw message
426425
ptrUM980->debugPrintf("");
427426
switch (type)

Diff for: 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 = 500);
145-
Um980Result updateEcef(uint16_t maxWaitMs = 500);
146-
Um980Result updateDateTime(uint16_t maxWaitMs = 500);
144+
Um980Result getGeodetic(uint16_t maxWaitMs = 1500);
145+
Um980Result updateEcef(uint16_t maxWaitMs = 1500);
146+
Um980Result updateDateTime(uint16_t maxWaitMs = 1500);
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 = 500);
241-
Um980Result sendQuery(const char *command, uint16_t maxWaitMs = 500);
242-
Um980Result sendString(const char *command, uint16_t maxWaitMs = 500);
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);
243243

244244
// Main helper functions
245-
double getLatitude(uint16_t maxWaitMs = 500);
245+
double getLatitude(uint16_t maxWaitMs = 1500);
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 = 500);
294+
char *getVersionFull(uint16_t maxWaitMs = 1500);
295295

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

0 commit comments

Comments
 (0)