addtional comment
This commit is contained in:
parent
1c967d4739
commit
4819bad402
@ -52,8 +52,8 @@ void TcPacketBase::setData(const uint8_t* pData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TcPacketBase::setApplicationData(const uint8_t * pData, uint16_t dataLen) {
|
void TcPacketBase::setApplicationData(const uint8_t * pData, uint16_t dataLen) {
|
||||||
SpacePacketBase::setData(pData);
|
setData(pData);
|
||||||
tcData = (TcPacketPointer*) pData;
|
// packet data length is actual size of data field minus 1
|
||||||
SpacePacketBase::setPacketDataLength(dataLen +
|
SpacePacketBase::setPacketDataLength(dataLen +
|
||||||
sizeof(PUSTcDataFieldHeader) + TcPacketBase::CRC_SIZE - 1);
|
sizeof(PUSTcDataFieldHeader) + TcPacketBase::CRC_SIZE - 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user