Skip to content

Commit

Permalink
Support old versions of GPSD in status usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rnorris committed Jan 18, 2025
1 parent d35a5e8 commit a152337
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vikgpslayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,11 @@ static void gpsd_raw_hook(VglGpsd *vgpsd, gchar *data)
}

vgl->gpsd_mode = vgpsd->gpsd.fix.mode;
#if GPSD_API_MAJOR_VERSION >= 10
vgl->gpsd_status = vgpsd->gpsd.fix.status;
#else
vgl->gpsd_status = vgpsd->gpsd.status;
#endif

if ((vgpsd->gpsd.fix.mode >= MODE_2D) &&
!isnan(vgpsd->gpsd.fix.latitude) &&
Expand Down

0 comments on commit a152337

Please sign in to comment.