mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Page alert commands
This commit is contained in:
parent
8f5ff4ca05
commit
55ba1233a8
5 changed files with 76 additions and 1 deletions
|
|
@ -2653,7 +2653,24 @@ void CMMDVMHost::remoteControl()
|
|||
m_pocsag->sendPageBCD(ric, text);
|
||||
}
|
||||
break;
|
||||
|
||||
case RCD_PAGE_A1:
|
||||
if (m_pocsag != NULL) {
|
||||
unsigned int ric = m_remoteControl->getArgUInt(0U);
|
||||
m_pocsag->sendPageAlert1(ric);
|
||||
}
|
||||
break;
|
||||
case RCD_PAGE_A2:
|
||||
if (m_pocsag != NULL) {
|
||||
unsigned int ric = m_remoteControl->getArgUInt(0U);
|
||||
std::string text;
|
||||
for (unsigned int i = 1U; i < m_remoteControl->getArgCount(); i++) {
|
||||
if (i > 1U)
|
||||
text += " ";
|
||||
text += m_remoteControl->getArgString(i);
|
||||
}
|
||||
m_pocsag->sendPageAlert2(ric, text);
|
||||
}
|
||||
break;
|
||||
case RCD_CW:
|
||||
setMode(MODE_IDLE); // Force the modem to go idle so that we can send the CW text.
|
||||
if (!m_modem->hasTX()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue