Skip to content

Commit 56c2cbe

Browse files
authored
Merge pull request #18 from NewNoob2002/main
Adapted on espidf
2 parents 1f264ae + f42ce85 commit 56c2cbe

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
set(COMPONENT_SRCDIRS
2+
"src"
3+
)
4+
5+
set(COMPONENT_ADD_INCLUDEDIRS
6+
"src"
7+
)
8+
9+
set(COMPONENT_REQUIRES
10+
"arduino-esp32"
11+
"SparkFun_Extensible_Message_Parser"
12+
)
13+
14+
register_component()

src/SparkFun_Unicore_GNSS_Arduino_Library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ bool UM980::enablePPS(uint32_t widthMicroseconds, uint16_t periodMilliseconds, b
601601
strncpy(polarity, "NEGATIVE", sizeof(polarity));
602602

603603
char command[50];
604-
snprintf(command, sizeof(command), "ENABLE GPS %s %d %d %d %d", polarity, widthMicroseconds, periodMilliseconds,
604+
snprintf(command, sizeof(command), "ENABLE GPS %s %ld %d %d %d", polarity, widthMicroseconds, periodMilliseconds,
605605
rfDelay, userDelay);
606606

607607
return (configurePPS(command));

0 commit comments

Comments
 (0)