mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
New option SendFrameType so one can send transparent data also to the modem serial port.
If set, one then has to specify the frame type (0x80 for modem serial of 0x90 for transparent data) as first byte af the message.
This commit is contained in:
parent
f58ef17eb7
commit
86fb3b6944
5 changed files with 29 additions and 4 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -114,6 +114,7 @@ m_transparentEnabled(false),
|
|||
m_transparentRemoteAddress(),
|
||||
m_transparentRemotePort(0U),
|
||||
m_transparentLocalPort(0U),
|
||||
m_transparentSendFrameType(0U),
|
||||
m_umpEnabled(false),
|
||||
m_umpPort(),
|
||||
m_dstarEnabled(false),
|
||||
|
|
@ -464,6 +465,8 @@ bool CConf::read()
|
|||
m_transparentRemotePort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "LocalPort") == 0)
|
||||
m_transparentLocalPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "SendFrameType") == 0)
|
||||
m_transparentSendFrameType = (unsigned int)::atoi(value);
|
||||
} else if (section == SECTION_UMP) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_umpEnabled = ::atoi(value) == 1;
|
||||
|
|
@ -1054,6 +1057,11 @@ unsigned int CConf::getTransparentLocalPort() const
|
|||
return m_transparentLocalPort;
|
||||
}
|
||||
|
||||
unsigned int CConf::getTransparentSendFrameType() const
|
||||
{
|
||||
return m_transparentSendFrameType;
|
||||
}
|
||||
|
||||
bool CConf::getUMPEnabled() const
|
||||
{
|
||||
return m_umpEnabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue