mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-01-09 09:49:59 +01:00
Don't forget to descramble the type byte first.
This commit is contained in:
parent
852889e0ee
commit
f7fe4d6683
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue