mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-06 14:53:52 +00:00
Start splitting YSF and FCS functionality.
This commit is contained in:
parent
05c0cce1db
commit
9dc484ea64
5 changed files with 190 additions and 143 deletions
|
|
@ -173,6 +173,8 @@ WX_STATUS CDTMF::validate() const
|
|||
if (m_command.at(1U) < '0' || m_command.at(1U) > '9')
|
||||
return WXS_NONE;
|
||||
}
|
||||
|
||||
return WXS_CONNECT_FCS;
|
||||
} else {
|
||||
for (unsigned int i = 1U; i <= 6U; i++) {
|
||||
if (m_command.at(1U) < '0' || m_command.at(1U) > '9')
|
||||
|
|
@ -181,9 +183,9 @@ WX_STATUS CDTMF::validate() const
|
|||
|
||||
if (m_command == "#99999")
|
||||
return WXS_DISCONNECT;
|
||||
}
|
||||
|
||||
return WXS_CONNECT;
|
||||
return WXS_CONNECT_YSF;
|
||||
}
|
||||
}
|
||||
|
||||
std::string CDTMF::getReflector()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue