added pus c support for tc
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
|
||||
#include "../objectmanager/ObjectManager.h"
|
||||
#include "../serviceinterface/ServiceInterface.h"
|
||||
#include "../tmtcpacket/pus/TcPacketStored.h"
|
||||
#include "../tmtcservices/PusVerificationReport.h"
|
||||
|
||||
#define PUS_DISTRIBUTOR_DEBUGGING 0
|
||||
@ -119,7 +118,11 @@ uint16_t PUSDistributor::getIdentifier() {
|
||||
}
|
||||
|
||||
ReturnValue_t PUSDistributor::initialize() {
|
||||
currentPacket = new TcPacketStored();
|
||||
#if FSFW_USE_PUS_C_TELECOMMANDS == 1
|
||||
currentPacket = new TcPacketStoredPusC();
|
||||
#else
|
||||
currentPacket = new TcPacketStoredPusA();
|
||||
#endif
|
||||
if(currentPacket == nullptr) {
|
||||
// Should not happen, memory allocation failed!
|
||||
return ObjectManagerIF::CHILD_INIT_FAILED;
|
||||
|
Reference in New Issue
Block a user