Update dwgpsd.c

Fix build with gpsd 3.20 

https://gitlab.com/gpsd/gpsd/-/blob/release-3.20/gps.h#L78
This commit is contained in:
lbartoletti 2020-03-05 18:19:11 +01:00 committed by GitHub
parent fde5bf6816
commit d54bf40320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -59,9 +59,9 @@
// dwgps.c claims to only support GPSD_API_MAJOR_VERSION 5, but also builds successfully with
// GPSD_API_MAJOR_VERSION 6 provided by libgps22 when the attached patch is applied.
// Also compatible with API 7 & 8 with conditional compilation later.
// Also compatible with API 7, 8 and 9 with conditional compilation later.
#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 8
#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 9
#error libgps API version might be incompatible.
#endif
@ -423,7 +423,8 @@ int main (int argc, char *argv[])
while (1) {
dwfix_t fix;
fix = dwgps_read (&info) ;
fix = dwgps_read (&info)
;
text_color_set (DW_COLOR_INFO);
switch (fix) {
case DWFIX_2D: