mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
fix for Eiger firmware sending bad packets of size 8 bytes when doing a stop
This commit is contained in:
parent
5c71dd7246
commit
ddf43dbd24
@ -70,6 +70,12 @@ ssize_t UdpRxSocket::ReceiveDataOnly(char *dst) noexcept {
|
||||
LOG(logWARNING) << "Got header pkg";
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user