some more fixes
All checks were successful
EIVE/eive-obsw/pipeline/pr-v2.1.0-dev This commit looks good

This commit is contained in:
Robin Müller 2023-05-12 11:55:33 +02:00
parent af20a36634
commit 66c9a5eea3
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 2 additions and 12 deletions

View File

@ -621,15 +621,6 @@ class TcGetHkReport : public TcBase {
: TcBase(params, apid::TC_HK_GET_REPORT, sequenceCount) {} : TcBase(params, apid::TC_HK_GET_REPORT, sequenceCount) {}
}; };
/**
* @brief Class to build replay stop space packet.
*/
class TcGetHkReport : public TcBase {
public:
TcGetHkReport(ploc::SpTcParams params, uint16_t sequenceCount)
: TcBase(params, apid::TC_HK_GET_REPORT, sequenceCount) {}
};
class TcGetDirContent : public TcBase { class TcGetDirContent : public TcBase {
public: public:
TcGetDirContent(ploc::SpTcParams params, uint16_t sequenceCount) TcGetDirContent(ploc::SpTcParams params, uint16_t sequenceCount)
@ -637,12 +628,11 @@ class TcGetDirContent : public TcBase {
ReturnValue_t initPacket(const uint8_t* commandData, size_t commandDataLen) { ReturnValue_t initPacket(const uint8_t* commandData, size_t commandDataLen) {
ReturnValue_t result = returnvalue::OK; ReturnValue_t result = returnvalue::OK;
spParams.setFullPayloadLen(commandDataLen + sizeof(NULL_TERMINATOR) + CRC_SIZE); spParams.setFullPayloadLen(commandDataLen + CRC_SIZE);
if (result != returnvalue::OK) { if (result != returnvalue::OK) {
return result; return result;
} }
std::memcpy(payloadStart, commandData, commandDataLen); std::memcpy(payloadStart, commandData, commandDataLen);
*(payloadStart + commandDataLen) = NULL_TERMINATOR;
return result; return result;
} }
}; };

2
tmtc

@ -1 +1 @@
Subproject commit f090c3af66d1a0b760344e80053d6e83895e661a Subproject commit 87e5abe8ebb6a33d36445d43bcb6674b313626f1