Bugfix #25
@ -29,7 +29,7 @@ PUSDistributor::TcMqMapIter PUSDistributor::selectDestination() {
|
|||||||
tcStatus = checker.checkPacket(currentPacket);
|
tcStatus = checker.checkPacket(currentPacket);
|
||||||
if(tcStatus != HasReturnvaluesIF::RETURN_OK) {
|
if(tcStatus != HasReturnvaluesIF::RETURN_OK) {
|
||||||
#if FSFW_VERBOSE_LEVEL >= 1
|
#if FSFW_VERBOSE_LEVEL >= 1
|
||||||
const char* keyword = nullptr;
|
const char* keyword = "unnamed error";
|
||||||
if(tcStatus == TcPacketCheck::INCORRECT_CHECKSUM) {
|
if(tcStatus == TcPacketCheck::INCORRECT_CHECKSUM) {
|
||||||
keyword = "checksum";
|
keyword = "checksum";
|
||||||
}
|
}
|
||||||
@ -45,9 +45,6 @@ PUSDistributor::TcMqMapIter PUSDistributor::selectDestination() {
|
|||||||
else if(tcStatus == TcPacketCheck::INCOMPLETE_PACKET) {
|
else if(tcStatus == TcPacketCheck::INCOMPLETE_PACKET) {
|
||||||
keyword = "incomplete packet";
|
keyword = "incomplete packet";
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
keyword = "unnamed error";
|
|
||||||
}
|
|
||||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||||
sif::warning << "PUSDistributor::handlePacket: Packet format invalid, "
|
sif::warning << "PUSDistributor::handlePacket: Packet format invalid, "
|
||||||
<< keyword << " error" << std::endl;
|
<< keyword << " error" << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user