mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
Add command page_bcd to send bcd message with pocsag
This commit is contained in:
parent
f3fb072238
commit
8f5ff4ca05
5 changed files with 21 additions and 3 deletions
|
|
@ -2639,9 +2639,21 @@ void CMMDVMHost::remoteControl()
|
|||
text += m_remoteControl->getArgString(i);
|
||||
}
|
||||
m_pocsag->sendPage(ric, text);
|
||||
m_pocsag->sendBCDPage(ric, "01234");
|
||||
}
|
||||
break;
|
||||
case RCD_PAGE_BCD:
|
||||
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->sendPageBCD(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