1
0
forked from fsfw/fsfw

updating code from Flying Laptop

This is the framework of Flying Laptop OBSW version A.13.0.
This commit is contained in:
2018-07-12 16:29:32 +02:00
parent 1d22a6c97e
commit 575f70ba03
395 changed files with 12807 additions and 8404 deletions

View File

@ -1,11 +1,5 @@
/*
* ParameterMessage.cpp
*
* Created on: 28.11.2015
* Author: mohr
*/
#include <framework/parameters/ParameterMessage.h>
#include <framework/objectmanager/ObjectManagerIF.h>
ParameterId_t ParameterMessage::getParameterId(const CommandMessage* message) {
return message->getParameter();
@ -36,3 +30,19 @@ void ParameterMessage::setParameterLoadCommand(CommandMessage* message,
message->setParameter(id);
message->setParameter2(storageID.raw);
}
void ParameterMessage::clear(CommandMessage* message) {
switch (message->getCommand()) {
case CMD_PARAMETER_LOAD:
case REPLY_PARAMETER_DUMP: {
StorageManagerIF *ipcStore = objectManager->get<StorageManagerIF>(
objects::IPC_STORE);
if (ipcStore != NULL) {
ipcStore->deleteData(getStoreId(message));
}
break;
}
default:
break;
}
}