From 36534215e42c9f0f7186d6e5541a4e1f1dd542bf Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Sat, 15 Jul 2023 08:53:46 +0200 Subject: [PATCH] dirty ack because gps s*cks --- Common/APRSGPSDIdFrameProvider.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Common/APRSGPSDIdFrameProvider.cpp b/Common/APRSGPSDIdFrameProvider.cpp index 19d529a..4adbee5 100644 --- a/Common/APRSGPSDIdFrameProvider.cpp +++ b/Common/APRSGPSDIdFrameProvider.cpp @@ -78,8 +78,14 @@ bool CAPRSGPSDIdFrameProvider::buildAPRSFramesInt(const CAPRSEntry * entry, std: if(m_gpsdData.status == STATUS_NO_FIX) return false; #else - if (m_gpsdData.fix.status == STATUS_UNK) + +#ifndef STATUS_UNK +#define STATUS_UNK STATUS_NO_FIX #Dirty ack. because gpsd history doc just s*cks +#endif + + if (m_gpsdData.fix.status == STATUS_UNK) return false; + #endif