optimization

This commit is contained in:
Robin Müller 2020-05-15 19:58:58 +02:00
parent c77ec9e7fc
commit 5b41f2a6bd

View File

@ -52,8 +52,7 @@ void TcPacketBase::setData(const uint8_t* pData) {
}
void TcPacketBase::setApplicationData(const uint8_t * pData, uint16_t dataLen) {
SpacePacketBase::setData(pData);
tcData = (TcPacketPointer*) pData;
setData(pData);
SpacePacketBase::setPacketDataLength(dataLen +
sizeof(PUSTcDataFieldHeader) + TcPacketBase::CRC_SIZE-1);
}