diff --git a/Common/APRSGPSDIdFrameProvider.cpp b/Common/APRSGPSDIdFrameProvider.cpp index 7f621be..4891a78 100644 --- a/Common/APRSGPSDIdFrameProvider.cpp +++ b/Common/APRSGPSDIdFrameProvider.cpp @@ -74,12 +74,17 @@ bool CAPRSGPSDIdFrameProvider::buildAPRSFramesInt(const CAPRSEntry * entry, std: return false; #endif -#if GPSD_API_MAJOR_VERSION >= 10 - if(m_gpsdData.fix.status == STATUS_NO_FIX) - return false; -#else +#if GPSD_API_MAJOR_VERSION < 10 if (m_gpsdData.status != STATUS_FIX) return false; +#elif GPSD_API_MAJOR_VERSION == 11 + if(m_gpsdData.fix.status == STATUS_NO_FIX) + return false; +#elif GPSD_API_MAJOR_VERSION <= 14 + if(m_gpsdData.fix.status == STATUS_UNK) + return false; +#elif + #error Unsupported GPSD_API_MAJOR_VERSION #endif bool latlonSet = (m_gpsdData.set & LATLON_SET) == LATLON_SET; diff --git a/README.md b/README.md index 6a96581..970c7c1 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,8 @@ The testing framwework used is Google Test. ## 5.1. Version 1.0 - [**Bugfix**] Fix #37 Unable to transmit multiple files (DGWVoiceTransmit) ([#37](https://github.com/F4FXL/DStarGateway/issues/37)) - [**Bugfix**] Fix #36 Error1 Build fails in some environment ([#36](https://github.com/F4FXL/DStarGateway/issues/36)) -- [**Bugfix**] Fix #38 g++ 13 build ([#37](https://github.com/F4FXL/DStarGateway/issues/38)) +- [**Bugfix**] Fix #38 g++ 13 build ([#38](https://github.com/F4FXL/DStarGateway/issues/38)) +- [**Bugfix**] Add support for libgps API version greater than ([#39](https://github.com/F4FXL/DStarGateway/issues/39)) ## 5.2. Version 0.7 - [**Bugfix**] Unknow repeater entries in log when using Icom Hardware ([#34](https://github.com/F4FXL/DStarGateway/issues/34)) - [**Bugfix**] Malformed callsign in some cases when using DV-G (NMEA) ([#33](https://github.com/F4FXL/DStarGateway/issues/33))