mirror of https://github.com/wb2osz/direwolf.git
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:
parent
fde5bf6816
commit
d54bf40320
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue