added clear message
This commit is contained in:
parent
bc151983b5
commit
fb7b059137
@ -1,5 +1,6 @@
|
|||||||
#include "CommandMessageCleaner.h"
|
#include "CommandMessageCleaner.h"
|
||||||
|
|
||||||
|
#include "../memory/GenericFileSystemMessage.h"
|
||||||
#include "../devicehandlers/DeviceHandlerMessage.h"
|
#include "../devicehandlers/DeviceHandlerMessage.h"
|
||||||
#include "../health/HealthMessage.h"
|
#include "../health/HealthMessage.h"
|
||||||
#include "../memory/MemoryMessage.h"
|
#include "../memory/MemoryMessage.h"
|
||||||
@ -42,6 +43,9 @@ void CommandMessageCleaner::clearCommandMessage(CommandMessage* message) {
|
|||||||
case messagetypes::HOUSEKEEPING:
|
case messagetypes::HOUSEKEEPING:
|
||||||
HousekeepingMessage::clear(message);
|
HousekeepingMessage::clear(message);
|
||||||
break;
|
break;
|
||||||
|
case messagetypes::FILE_SYSTEM_MESSAGE:
|
||||||
|
GenericFileSystemMessage::clear(message);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
messagetypes::clearMissionMessage(message);
|
messagetypes::clearMissionMessage(message);
|
||||||
break;
|
break;
|
||||||
|
@ -130,3 +130,7 @@ bool GenericFileSystemMessage::getReadReply(const CommandMessage *message,
|
|||||||
}
|
}
|
||||||
return message->getParameter();
|
return message->getParameter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ReturnValue_t GenericFileSystemMessage::clear(CommandMessage* message) {
|
||||||
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
|
}
|
||||||
|
@ -108,6 +108,8 @@ public:
|
|||||||
static ReturnValue_t getFailureReply(const CommandMessage* message,
|
static ReturnValue_t getFailureReply(const CommandMessage* message,
|
||||||
uint32_t* errorParam = nullptr);
|
uint32_t* errorParam = nullptr);
|
||||||
|
|
||||||
|
static ReturnValue_t clear(CommandMessage* message);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* MISSION_MEMORY_GENERICFILESYSTEMMESSAGE_H_ */
|
#endif /* MISSION_MEMORY_GENERICFILESYSTEMMESSAGE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user