diff --git a/src/common/p25/dfsi/frames/MotPDUFrame.cpp b/src/common/p25/dfsi/frames/MotPDUFrame.cpp index 8ed36bca..eb79ee9f 100644 --- a/src/common/p25/dfsi/frames/MotPDUFrame.cpp +++ b/src/common/p25/dfsi/frames/MotPDUFrame.cpp @@ -60,7 +60,7 @@ MotPDUFrame::~MotPDUFrame() delete[] pduHeaderData; } -/* Decode a TSBK frame. */ +/* Decode a PDU frame. (only the PDU data header...) */ bool MotPDUFrame::decode(const uint8_t* data) { @@ -84,7 +84,7 @@ bool MotPDUFrame::decode(const uint8_t* data) return true; } -/* Encode a TSBK frame. */ +/* Encode a PDU frame. (only the PDU data header...) */ void MotPDUFrame::encode(uint8_t* data) { @@ -100,7 +100,7 @@ void MotPDUFrame::encode(uint8_t* data) ::memcpy(data + 1U, buffer + 1U, 4U); } - // encode TSBK - scope is intentional + // encode PDU - scope is intentional { data[0U] = DFSIFrameType::PDU; ::memcpy(data + 9U, pduHeaderData, P25_PDU_HEADER_LENGTH_BYTES); diff --git a/src/common/p25/dfsi/frames/MotPDUFrame.h b/src/common/p25/dfsi/frames/MotPDUFrame.h index 1cb14868..4280d15a 100644 --- a/src/common/p25/dfsi/frames/MotPDUFrame.h +++ b/src/common/p25/dfsi/frames/MotPDUFrame.h @@ -72,12 +72,12 @@ namespace p25 ~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. */ 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. */ void encode(uint8_t* data);