Skip to content

Commit 6c38278

Browse files
committed
Fix compiler warnings
1 parent 1b5b43b commit 6c38278

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SparkFun_Unicore_GNSS_Arduino_Library.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ bool UM980::setModeRoverMow()
316316
bool UM980::setPortBaudrate(const char *comName, unsigned long newBaud)
317317
{
318318
char command[50];
319-
snprintf(command, sizeof(command), "CONFIG %s %d", comName, newBaud);
319+
snprintf(command, sizeof(command), "CONFIG %s %ld", comName, newBaud);
320320

321321
return (sendCommand(command));
322322
}
@@ -326,7 +326,7 @@ bool UM980::setPortBaudrate(const char *comName, unsigned long newBaud)
326326
bool UM980::setBaudrate(unsigned long newBaud)
327327
{
328328
char command[50];
329-
snprintf(command, sizeof(command), "CONFIG %d", newBaud);
329+
snprintf(command, sizeof(command), "CONFIG %ld", newBaud);
330330

331331
return (sendCommand(command));
332332
}

0 commit comments

Comments
 (0)