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.
This commit is contained in:
Thomas McCarthy 2021-04-21 18:25:09 +01:00 committed by GitHub
parent b66c21d39b
commit 89bf50f18e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -58,9 +58,9 @@
// An incompatibility was introduced with version 7 // 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. #error libgps API version might be incompatible.
#endif #endif
@ -491,7 +491,8 @@ int main (int argc, char *argv[])
while (1) { while (1) {
dwfix_t fix; dwfix_t fix;
fix = dwgps_read (&info) ; fix = dwgps_read (&info)
;
text_color_set (DW_COLOR_INFO); text_color_set (DW_COLOR_INFO);
switch (fix) { switch (fix) {
case DWFIX_2D: case DWFIX_2D: