added back clear CommandMessage function

This commit is contained in:
Robin Müller 2020-06-29 16:50:45 +02:00
parent e2a36efce3
commit 85cc936d5d
2 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,10 @@ size_t CommandMessage::getMinimumMessageSize() const {
return MINIMUM_COMMAND_MESSAGE_SIZE; return MINIMUM_COMMAND_MESSAGE_SIZE;
} }
void CommandMessage::clearCommandMessage() {
clear();
}
void CommandMessage::clear() { void CommandMessage::clear() {
CommandMessageCleaner::clearCommandMessage(this); CommandMessageCleaner::clearCommandMessage(this);
} }

View File

@ -111,7 +111,9 @@ public:
ReturnValue_t getReplyRejectedReason( ReturnValue_t getReplyRejectedReason(
Command_t* initialCommand = nullptr) const override; Command_t* initialCommand = nullptr) const override;
virtual void clear() override; virtual void clear() override;
void clearCommandMessage();
/** /**
* Extract message ID, which is the first byte of the command ID for the * Extract message ID, which is the first byte of the command ID for the