mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
setting udp port
This commit is contained in:
1 parent
76770b8426
commit
d9a3a4fd58
1 file changed
+3
@@ -1059,6 +1059,9 @@ void Module::setNumberofUDPInterfaces(int n) {
|
||||
shm()->numUDPInterfaces = n;
|
||||
if (shm()->useReceiverFlag) {
|
||||
sendToReceiver(F_SET_RECEIVER_NUM_INTERFACES, n, nullptr);
|
||||
// update udp port in receiver as well
|
||||
uint16_t udpPort2 = sendToDetector<uint16_t>(F_GET_DEST_UDP_PORT2);
|
||||
sendToReceiver(F_SET_RECEIVER_UDP_PORT2, udpPort2, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user