fix sleep deprived typos;

pull/69/head
Bryan Biedenkapp 1 year ago
parent f68532ed33
commit 4786923b1e

@ -60,7 +60,7 @@ MotPDUFrame::~MotPDUFrame()
delete[] pduHeaderData; delete[] pduHeaderData;
} }
/* Decode a TSBK frame. */ /* Decode a PDU frame. (only the PDU data header...) */
bool MotPDUFrame::decode(const uint8_t* data) bool MotPDUFrame::decode(const uint8_t* data)
{ {
@ -84,7 +84,7 @@ bool MotPDUFrame::decode(const uint8_t* data)
return true; return true;
} }
/* Encode a TSBK frame. */ /* Encode a PDU frame. (only the PDU data header...) */
void MotPDUFrame::encode(uint8_t* data) void MotPDUFrame::encode(uint8_t* data)
{ {
@ -100,7 +100,7 @@ void MotPDUFrame::encode(uint8_t* data)
::memcpy(data + 1U, buffer + 1U, 4U); ::memcpy(data + 1U, buffer + 1U, 4U);
} }
// encode TSBK - scope is intentional // encode PDU - scope is intentional
{ {
data[0U] = DFSIFrameType::PDU; data[0U] = DFSIFrameType::PDU;
::memcpy(data + 9U, pduHeaderData, P25_PDU_HEADER_LENGTH_BYTES); ::memcpy(data + 9U, pduHeaderData, P25_PDU_HEADER_LENGTH_BYTES);

@ -72,12 +72,12 @@ namespace p25
~MotPDUFrame(); ~MotPDUFrame();
/** /**
* @brief Decode a PDU frame. * @brief Decode a PDU frame. (only the PDU data header...)
* @param[in] data Buffer to containing MotPDUFrame to decode. * @param[in] data Buffer to containing MotPDUFrame to decode.
*/ */
bool decode(const uint8_t* data); bool decode(const uint8_t* data);
/** /**
* @brief Encode a TSBK frame. * @brief Encode a PDU frame. (only the PDU data header...)
* @param[out] data Buffer to encode a MotPDUFrame. * @param[out] data Buffer to encode a MotPDUFrame.
*/ */
void encode(uint8_t* data); void encode(uint8_t* data);

Loading…
Cancel
Save

Powered by TurnKey Linux.