removed debug code and typo
fsfw/fsfw/pipeline/head There was a failure building this commit Details

This commit is contained in:
Ulrich Mohr 2023-07-06 13:33:59 +02:00
parent 50a4ec97ef
commit 14a7dd885b
1 changed files with 2 additions and 5 deletions

View File

@ -202,17 +202,14 @@ void UdpTmTcBridgeNew::handleTM() {
size_t tcDataSize;
result = IPCStore->getData(tc, &tcData, &tcDataSize);
if (result != returnvalue::OK) {
puts("default");
receiver = defaultDestination;
receiverLen = defaultDestinationLen;
} else {
if (*tcData != IP6) {
// this should not have been routed here
puts("huh?");
return;
}
puts("from tc");
receiver = (const sockaddr *)tcData + 1;
receiver = (const sockaddr *)(tcData + 1);
receiverLen = sizeof(sockaddr_in6);
}
@ -227,6 +224,6 @@ void UdpTmTcBridgeNew::handleTM() {
int res = sendto(serverSocket, tmData, tmDataSize, 0, receiver, receiverLen);
if (res == -1) {
sif::error << "UdpTmTcBridge::handleTM: sendto failed with " << errno << (int) receiver->sa_family << std::endl;
sif::error << "UdpTmTcBridge::handleTM: sendto failed with " << errno << std::endl;
}
}