important bugfix
This commit is contained in:
parent
54af54927b
commit
ea8ef8b874
@ -17,8 +17,11 @@ PUSDistributor::TcMqMapIter PUSDistributor::selectDestination() {
|
|||||||
// << this->current_packet_id.store_index << ", "
|
// << this->current_packet_id.store_index << ", "
|
||||||
// << this->current_packet_id.packet_index << std::endl;
|
// << this->current_packet_id.packet_index << std::endl;
|
||||||
TcMqMapIter queueMapIt = this->queueMap.end();
|
TcMqMapIter queueMapIt = this->queueMap.end();
|
||||||
|
if(this->currentPacket == nullptr) {
|
||||||
|
return queueMapIt;
|
||||||
|
}
|
||||||
this->currentPacket->setStoreAddress(this->currentMessage.getStorageId());
|
this->currentPacket->setStoreAddress(this->currentMessage.getStorageId());
|
||||||
if (currentPacket->getWholeData() != NULL) {
|
if (currentPacket->getWholeData() != nullptr) {
|
||||||
tcStatus = checker.checkPacket(currentPacket);
|
tcStatus = checker.checkPacket(currentPacket);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if(tcStatus != HasReturnvaluesIF::RETURN_OK) {
|
if(tcStatus != HasReturnvaluesIF::RETURN_OK) {
|
||||||
@ -94,6 +97,7 @@ uint16_t PUSDistributor::getIdentifier() {
|
|||||||
ReturnValue_t PUSDistributor::initialize() {
|
ReturnValue_t PUSDistributor::initialize() {
|
||||||
CCSDSDistributorIF* ccsdsDistributor =
|
CCSDSDistributorIF* ccsdsDistributor =
|
||||||
objectManager->get<CCSDSDistributorIF>(packetSource);
|
objectManager->get<CCSDSDistributorIF>(packetSource);
|
||||||
|
currentPacket = new TcPacketStored();
|
||||||
if (ccsdsDistributor == nullptr) {
|
if (ccsdsDistributor == nullptr) {
|
||||||
sif::error << "PUSDistributor::initialize: Packet source invalid."
|
sif::error << "PUSDistributor::initialize: Packet source invalid."
|
||||||
<< " Make sure it exists and implements CCSDSDistributorIF!"
|
<< " Make sure it exists and implements CCSDSDistributorIF!"
|
||||||
@ -103,6 +107,4 @@ ReturnValue_t PUSDistributor::initialize() {
|
|||||||
else {
|
else {
|
||||||
return ccsdsDistributor->registerApplication(this);
|
return ccsdsDistributor->registerApplication(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
currentPacket = new TcPacketStored();
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user