Skip to content

Commit 89bf50f

Browse files
Update dwgpsd.c
Fix for Issue #330 An incompatibility was introduced again when using gpsd api 11 from gpsd: 3.22.1~dev (revision release-3.22-332-g743585cc3) Increasing the Changing GPSD_API_MAJOR_VERSION > 11 to 12 solves this.
1 parent b66c21d commit 89bf50f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: src/dwgpsd.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858

5959

6060
// An incompatibility was introduced with version 7
61-
// and again with 9 and again with 10.
61+
// and again with 9 and again with 10 and again with 11.
6262

63-
#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 11
63+
#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 12
6464
#error libgps API version might be incompatible.
6565
#endif
6666

@@ -491,7 +491,8 @@ int main (int argc, char *argv[])
491491
while (1) {
492492
dwfix_t fix;
493493

494-
fix = dwgps_read (&info);
494+
fix = dwgps_read (&info)
495+
;
495496
text_color_set (DW_COLOR_INFO);
496497
switch (fix) {
497498
case DWFIX_2D:

0 commit comments

Comments
 (0)