1
0
forked from fsfw/fsfw

size_t uint16_t corrections

This commit is contained in:
2020-05-15 19:51:39 +02:00
parent 1fb87db82e
commit eb5832180b
4 changed files with 6 additions and 5 deletions

View File

@ -82,7 +82,7 @@ void SpacePacketBase::setPacketDataLength( uint16_t new_length) {
this->data->header.packet_length_l = ( new_length & 0x00FF );
}
uint32_t SpacePacketBase::getFullSize() {
size_t SpacePacketBase::getFullSize() {
//+1 is done because size in packet data length field is: size of data field -1
return this->getPacketDataLength() + sizeof(this->data->header) + 1;
}