Skip to content

Commit

Permalink
src/gpsdclient.cpp: made compatible with GPSD_API_MAJOR_VERSION >= 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dexpl committed Jul 16, 2019
1 parent 43b0ed8 commit f97ddc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gpsdclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ void florb::gpsdclient::worker(void)
}

// Read data
#if GPSD_API_MAJOR_VERSION >= 7
if (gps_read(&m_gpsdata, NULL, 0) == -1) {
#else
if (gps_read(&m_gpsdata) == -1) {
#endif
// Error
break;
}
Expand Down

0 comments on commit f97ddc0

Please sign in to comment.