mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-22 14:16:08 +08:00
Fix compile with GPSD enabled.
This commit is contained in:
@@ -378,13 +378,13 @@ int CDMRGateway::run()
|
|||||||
bool gpsdEnabled = m_conf.getGPSDEnabled();
|
bool gpsdEnabled = m_conf.getGPSDEnabled();
|
||||||
if (gpsdEnabled) {
|
if (gpsdEnabled) {
|
||||||
std::string gpsdAddress = m_conf.getGPSDAddress();
|
std::string gpsdAddress = m_conf.getGPSDAddress();
|
||||||
std::string gpsdPort = m_conf.getGPSDPort();
|
std::string gpsdPort = m_conf.getGPSDPort();
|
||||||
|
|
||||||
LogInfo("GPSD Parameters");
|
LogInfo("GPSD Parameters");
|
||||||
LogInfo(" Address: %s", gpsdAddress.c_str());
|
LogInfo(" Address: %s", gpsdAddress.c_str());
|
||||||
LogInfo(" Port: %s", gpsdPort.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();
|
ret = m_gpsd->open();
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
|
|||||||
Reference in New Issue
Block a user