From f6643eb6975cae4277eff46a61f865dffb60a9d0 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 26 Aug 2020 14:25:37 +0100 Subject: [PATCH] Fix compile with GPSD enabled. --- DMRGateway.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DMRGateway.cpp b/DMRGateway.cpp index b7f1a81..464c6af 100644 --- a/DMRGateway.cpp +++ b/DMRGateway.cpp @@ -378,13 +378,13 @@ int CDMRGateway::run() bool gpsdEnabled = m_conf.getGPSDEnabled(); if (gpsdEnabled) { std::string gpsdAddress = m_conf.getGPSDAddress(); - std::string gpsdPort = m_conf.getGPSDPort(); + std::string gpsdPort = m_conf.getGPSDPort(); LogInfo("GPSD Parameters"); LogInfo(" Address: %s", gpsdAddress.c_str()); LogInfo(" Port: %s", gpsdPort.c_str()); - m_gpsd = new CGPSD(gpsdAddress, gpsdPort, m_dmrNetwork); + m_gpsd = new CGPSD(gpsdAddress, gpsdPort); ret = m_gpsd->open(); if (!ret) {