mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 00:49:22 +01:00
fix for Eiger firmware sending bad packets of size 8 bytes when doing a stop
This commit is contained in:
@@ -70,6 +70,12 @@ ssize_t UdpRxSocket::ReceiveDataOnly(char *dst) noexcept {
|
|||||||
LOG(logWARNING) << "Got header pkg";
|
LOG(logWARNING) << "Got header pkg";
|
||||||
r = recvfrom(sockfd_, dst, packet_size_, 0, nullptr, nullptr);
|
r = recvfrom(sockfd_, dst, packet_size_, 0, nullptr, nullptr);
|
||||||
}
|
}
|
||||||
|
// temporary workaround for Eiger firmware (stop sends bad packets of size 8
|
||||||
|
// bytes)
|
||||||
|
if (r == 8) {
|
||||||
|
LOG(logWARNING) << "Ignoring bad packet of size 8 bytes";
|
||||||
|
r = recvfrom(sockfd_, dst, packet_size_, 0, nullptr, nullptr);
|
||||||
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user