mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Merge branch 'master' into M17_AX25_FM
This commit is contained in:
12
Conf.cpp
12
Conf.cpp
@@ -139,7 +139,7 @@ m_dstarBlackList(),
|
||||
m_dstarWhiteList(),
|
||||
m_dstarAckReply(true),
|
||||
m_dstarAckTime(750U),
|
||||
m_dstarAckMessage(false),
|
||||
m_dstarAckMessage(DSTAR_ACK_BER),
|
||||
m_dstarErrorReply(true),
|
||||
m_dstarRemoteGateway(false),
|
||||
m_dstarModeHang(10U),
|
||||
@@ -644,9 +644,11 @@ bool CConf::read()
|
||||
m_dstarAckReply = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "AckTime") == 0)
|
||||
m_dstarAckTime = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "AckMessage") == 0)
|
||||
m_dstarAckMessage = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "ErrorReply") == 0)
|
||||
else if (::strcmp(key, "AckMessage") == 0) {
|
||||
m_dstarAckMessage = (DSTAR_ACK_MESSAGE)::atoi(value);
|
||||
if (m_dstarAckMessage != DSTAR_ACK_BER && m_dstarAckMessage != DSTAR_ACK_RSSI && m_dstarAckMessage != DSTAR_ACK_SMETER)
|
||||
m_dstarAckMessage = DSTAR_ACK_BER;
|
||||
} else if (::strcmp(key, "ErrorReply") == 0)
|
||||
m_dstarErrorReply = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "RemoteGateway") == 0)
|
||||
m_dstarRemoteGateway = ::atoi(value) == 1;
|
||||
@@ -1504,7 +1506,7 @@ unsigned int CConf::getDStarAckTime() const
|
||||
return m_dstarAckTime;
|
||||
}
|
||||
|
||||
bool CConf::getDStarAckMessage() const
|
||||
DSTAR_ACK_MESSAGE CConf::getDStarAckMessage() const
|
||||
{
|
||||
return m_dstarAckMessage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user