From 92ae98b36ed39faffbec1f37d0a063605ddf0331 Mon Sep 17 00:00:00 2001 From: maschinist Date: Fri, 20 Jul 2018 11:18:46 +0200 Subject: [PATCH] Add forwarding of alphanum payload for func Alert2 msgs --- POCSAGControl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/POCSAGControl.cpp b/POCSAGControl.cpp index 4bfb3f0..48e4578 100644 --- a/POCSAGControl.cpp +++ b/POCSAGControl.cpp @@ -130,8 +130,9 @@ bool CPOCSAGControl::processData() LogDebug("Message to %07u, func Alert 1", m_ric); break; case FUNCTIONAL_ALERT2: - m_text.clear(); - LogDebug("Message to %07u, func Alert 2", m_ric); + m_text = std::string((char*)(data + 4U), length - 4U); + LogDebug("Message to %07u, func Alert 2: \"%s\"", m_ric, m_text.c_str()); + packASCII(); break; default: break;