Skip to content

Commit

Permalink
Merge pull request #3 from dexpl/master
Browse files Browse the repository at this point in the history
src/gpsdclient.cpp: made compatible with GPSD_API_MAJOR_VERSION >= 7
  • Loading branch information
shugaa authored Jul 16, 2019
2 parents 43b0ed8 + f97ddc0 commit 85d2be7
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 85d2be7

Please sign in to comment.