mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
Add locally timed DMR roaming beacons.
This commit is contained in:
parent
22ed285857
commit
d3395278c6
5 changed files with 29 additions and 20 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2015,2016,2017 by Jonathan Naylor G4KLX
|
||||
* Copyright (C) 2015,2016,2017,2018 by Jonathan Naylor G4KLX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -110,7 +110,7 @@ m_dstarErrorReply(true),
|
|||
m_dstarRemoteGateway(false),
|
||||
m_dstarModeHang(10U),
|
||||
m_dmrEnabled(false),
|
||||
m_dmrBeacons(false),
|
||||
m_dmrBeacons(0U),
|
||||
m_dmrId(0U),
|
||||
m_dmrColorCode(2U),
|
||||
m_dmrSelfOnly(false),
|
||||
|
|
@ -423,7 +423,7 @@ bool CConf::read()
|
|||
if (::strcmp(key, "Enable") == 0)
|
||||
m_dmrEnabled = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Beacons") == 0)
|
||||
m_dmrBeacons = ::atoi(value) == 1;
|
||||
m_dmrBeacons = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Id") == 0)
|
||||
m_dmrId = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "ColorCode") == 0)
|
||||
|
|
@ -928,7 +928,7 @@ bool CConf::getDMREnabled() const
|
|||
return m_dmrEnabled;
|
||||
}
|
||||
|
||||
bool CConf::getDMRBeacons() const
|
||||
unsigned int CConf::getDMRBeacons() const
|
||||
{
|
||||
return m_dmrBeacons;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue