added clear message

This commit is contained in:
Robin Müller 2021-06-08 15:13:49 +02:00
parent bc151983b5
commit fb7b059137
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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_ */