Skip to content

Commit 7ec1a45

Browse files
committed
Add maxWait to saveConfiguration
1 parent 2faac99 commit 7ec1a45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/SparkFun_Unicore_GNSS_Arduino_Library.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,9 +865,9 @@ bool UM980::reset()
865865
// Saves the current configuration into non-volatile memory (NVM),
866866
// including LOG messages (except those triggered by ONCE), port
867867
// configuration, etc.
868-
bool UM980::saveConfiguration()
868+
bool UM980::saveConfiguration(uint16_t maxWait)
869869
{
870-
return (sendCommand("SAVECONFIG"));
870+
return (sendCommand("SAVECONFIG", maxWait));
871871
}
872872

873873
// Abstraction of the serial interface

src/SparkFun_Unicore_GNSS_Arduino_Library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class UM980
230230
bool disableOutputPort(const char *comName);
231231
bool factoryReset();
232232
bool reset();
233-
bool saveConfiguration();
233+
bool saveConfiguration(uint16_t maxWaitMs = 1500);
234234

235235
uint16_t serialAvailable();
236236
uint8_t serialRead();

0 commit comments

Comments
 (0)