exec task if new init function, some corrections

This commit is contained in:
2020-06-29 15:44:18 +02:00
parent ba5b8bd682
commit b81b458ba6
6 changed files with 18 additions and 9 deletions

View File

@ -84,9 +84,8 @@ void CommandMessage::setToUnknownCommand() {
void CommandMessage::setReplyRejected(ReturnValue_t reason,
Command_t initialCommand) {
std::memcpy(getData(), &reason, sizeof(reason));
std::memcpy(getData() + sizeof(reason), &initialCommand,
sizeof(initialCommand));
setParameter(reason);
setParameter2(initialCommand);
}
ReturnValue_t CommandMessage::getReplyRejectedReason(