mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-07-09 01:39:31 +02:00
minor
This commit is contained in:
@@ -69,6 +69,8 @@ added rx_streamdummyheader to send the zmq dummy header any time. Allows pre-con
|
||||
|
||||
allow disabling one UDP interface in the receiver.
|
||||
|
||||
setting number of UDP interfaces can only be set at detector level and not at module level. (individual modules)
|
||||
|
||||
2 On-board Detector Server Compatibility
|
||||
==========================================
|
||||
|
||||
|
||||
@@ -1681,6 +1681,8 @@ void ClientInterface::validate_port_position(const portPosition port) {
|
||||
}
|
||||
|
||||
int ClientInterface::set_port_udp_datastream(Interface &socket) {
|
||||
if (detType != EIGER && detType != JUNGFRAU && detType != MOENCH)
|
||||
functionNotImplemented();
|
||||
int args[2]{-1, -1};
|
||||
socket.Receive(args);
|
||||
portPosition port = static_cast<portPosition>(args[0]);
|
||||
@@ -1692,8 +1694,6 @@ int ClientInterface::set_port_udp_datastream(Interface &socket) {
|
||||
LOG(logDEBUG1) << "Setting udp datastream (" << ToString(port) << ") to "
|
||||
<< ToString(enable);
|
||||
verifyIdle(socket);
|
||||
if (detType != EIGER && detType != JUNGFRAU && detType != MOENCH)
|
||||
functionNotImplemented();
|
||||
impl()->setUDPDataStream(port, enable);
|
||||
return socket.Send(OK);
|
||||
}
|
||||
|
||||
@@ -1626,8 +1626,8 @@ void Implementation::setTenGigaEnable(const bool b) {
|
||||
// datastream can be disabled/enabled only for Eiger 10GbE
|
||||
if (generalData->detType == EIGER) {
|
||||
if (!b) {
|
||||
udpDataStream[LEFT] = 1;
|
||||
udpDataStream[RIGHT] = 1;
|
||||
udpDataStream[LEFT] = true;
|
||||
udpDataStream[RIGHT] = true;
|
||||
} else {
|
||||
udpDataStream[LEFT] = udpDataStream10GbE[LEFT];
|
||||
udpDataStream[RIGHT] = udpDataStream10GbE[RIGHT];
|
||||
|
||||
Reference in New Issue
Block a user