From f7fe4d66838be62d9a00014cdcdfd786e5f66449 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Fri, 25 Jan 2019 11:38:49 +0000 Subject: [PATCH] Don't forget to descramble the type byte first. --- Common/RepeaterHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/RepeaterHandler.cpp b/Common/RepeaterHandler.cpp index 86d3cb2..0736723 100644 --- a/Common/RepeaterHandler.cpp +++ b/Common/RepeaterHandler.cpp @@ -742,7 +742,7 @@ void CRepeaterHandler::processRepeater(CAMBEData& data) // Check for the fast data signature if (!m_fastData) { - unsigned char slowDataType = buffer[VOICE_FRAME_LENGTH_BYTES] & SLOW_DATA_TYPE_MASK; + unsigned char slowDataType = (buffer[VOICE_FRAME_LENGTH_BYTES] ^ SCRAMBLER_BYTE1) & SLOW_DATA_TYPE_MASK; if (slowDataType == SLOW_DATA_TYPE_FAST_DATA1 || slowDataType == SLOW_DATA_TYPE_FAST_DATA2) m_fastData = true; }