corrected V24 TSBK offset

pull/65/head
W3AXL 2 years ago
parent 38bce6de04
commit e7bec0504f

@ -79,7 +79,7 @@ bool MotTSBKFrame::decode(const uint8_t* data)
// decode start of stream // decode start of stream
startOfStream->decode(startBuffer); startOfStream->decode(startBuffer);
::memcpy(tsbkData, data + 7U, P25_TSBK_LENGTH_BYTES); ::memcpy(tsbkData, data + 9U, P25_TSBK_LENGTH_BYTES);
return true; return true;
} }
@ -103,6 +103,6 @@ void MotTSBKFrame::encode(uint8_t* data)
// encode TSBK - scope is intentional // encode TSBK - scope is intentional
{ {
data[0U] = DFSIFrameType::TSBK; data[0U] = DFSIFrameType::TSBK;
::memcpy(data + 7U, tsbkData, P25_TSBK_LENGTH_BYTES); ::memcpy(data + 9U, tsbkData, P25_TSBK_LENGTH_BYTES);
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.