From dd2f5fbe26fb03a5195a39ee103daf9870a9b0fe Mon Sep 17 00:00:00 2001 From: Andy Taylor Date: Tue, 5 May 2020 19:24:29 +0100 Subject: [PATCH] Update MMDVMHost.cpp --- MMDVMHost.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MMDVMHost.cpp b/MMDVMHost.cpp index 2134223..1e61600 100644 --- a/MMDVMHost.cpp +++ b/MMDVMHost.cpp @@ -1986,6 +1986,17 @@ void CMMDVMHost::remoteControl() } m_pocsag->sendPage(ric, text); } + case RCD_CW: + if (!m_modem->hasTX()){ + std::string cwtext; + for (unsigned int i = 0U; i < m_remoteControl->getArgCount(); i++) { + if (i > 0U) + cwtext += " "; + cwtext += m_remoteControl->getArgString(i); + } + m_display->writeCW(); + m_modem->sendCWId(cwtext); + } default: break; }