From 89bf50f18ed66d9b856fda7d59aacd4de2d5aea3 Mon Sep 17 00:00:00 2001 From: Thomas McCarthy Date: Wed, 21 Apr 2021 18:25:09 +0100 Subject: [PATCH] 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. --- src/dwgpsd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dwgpsd.c b/src/dwgpsd.c index 70b650b..c9af4c6 100644 --- a/src/dwgpsd.c +++ b/src/dwgpsd.c @@ -58,9 +58,9 @@ // An incompatibility was introduced with version 7 -// and again with 9 and again with 10. +// and again with 9 and again with 10 and again with 11. -#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 11 +#if GPSD_API_MAJOR_VERSION < 5 || GPSD_API_MAJOR_VERSION > 12 #error libgps API version might be incompatible. #endif @@ -491,7 +491,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: