~foxtrotgps-team/foxtrotgps/trunk

« back to all changes in this revision

Viewing changes to src/gps_functions.c

  • Committer: Paul Wise
  • Date: 2023-05-17 01:38:04 UTC
  • Revision ID: pabs3@bonedaddy.net-20230517013804-w1yi40h35dzvvv7b
Add support for gpsd API version 12

Reported-by: Boian Bonev <bbonev@ipacct.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
762
762
                {
763
763
                        gpsdata->fix.time = (time_t) 0;
764
764
                }
765
 
#if GPSD_API_MAJOR_VERSION >= 10
 
765
#if GPSD_API_MAJOR_VERSION >= 12
 
766
                gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_UNK || libgps_gpsdata.fix.mode >= MODE_2D);
 
767
#elif GPSD_API_MAJOR_VERSION >= 10
766
768
                gpsdata->valid = (libgps_gpsdata.fix.status != STATUS_NO_FIX || libgps_gpsdata.fix.mode >= MODE_2D);
767
769
#else
768
770
                gpsdata->valid = (libgps_gpsdata.status != STATUS_NO_FIX);