Skip to content

Commit 3a28425

Browse files
h0bbl3scsete
authored andcommitted
Add support for more recent gpsd API versions
Added support for API 15 and 16
1 parent 73937f7 commit 3a28425

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/qth-data.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,8 @@ gboolean qth_data_update(qth_t * qth, gdouble t)
571571
case 12:
572572
case 13:
573573
case 14:
574+
case 15:
575+
case 16:
574576
#if GPSD_API_MAJOR_VERSION>=11 /* for libgps 3.22 or later */
575577
while (gps_waiting(qth->gps_data, 0) == 1)
576578
{
@@ -742,6 +744,8 @@ gboolean qth_data_update_init(qth_t * qth)
742744
case 12:
743745
case 13:
744746
case 14:
747+
case 15:
748+
case 16:
745749
#if GPSD_API_MAJOR_VERSION>=11 /* for libgps 3.22 or later */
746750
/* open the connection to gpsd and start the stream */
747751
qth->gps_data = g_try_new0(struct gps_data_t, 1);
@@ -818,7 +822,9 @@ void qth_data_update_stop(qth_t * qth)
818822
case 12:
819823
case 13:
820824
case 14:
821-
#if GPSD_API_MAJOR_VERSION==11
825+
case 15:
826+
case 16:
827+
#if GPSD_API_MAJOR_VERSION>=11
822828
gps_close(qth->gps_data);
823829
#endif
824830
break;

0 commit comments

Comments
 (0)