getter function bugfix
This commit is contained in:
parent
ce3e4a1176
commit
1ed5da3a12
@ -123,11 +123,9 @@ void CommandMessage::setReplyRejected(ReturnValue_t reason,
|
|||||||
|
|
||||||
ReturnValue_t CommandMessage::getReplyRejectedReason(
|
ReturnValue_t CommandMessage::getReplyRejectedReason(
|
||||||
Command_t *initialCommand) const {
|
Command_t *initialCommand) const {
|
||||||
ReturnValue_t reason = HasReturnvaluesIF::RETURN_FAILED;
|
ReturnValue_t reason = getParameter();
|
||||||
std::memcpy(&reason, getData(), sizeof(reason));
|
|
||||||
if(initialCommand != nullptr) {
|
if(initialCommand != nullptr) {
|
||||||
std::memcpy(initialCommand, getData() + sizeof(reason),
|
*initialCommand = getParameter2();
|
||||||
sizeof(Command_t));
|
|
||||||
}
|
}
|
||||||
return reason;
|
return reason;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user