From d9a3a4fd583d2c9bf9d395c589d64dedd0b85191 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 16 Nov 2026 15:40:01 +0100 Subject: [PATCH] setting udp port --- slsDetectorSoftware/src/Module.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slsDetectorSoftware/src/Module.cpp b/slsDetectorSoftware/src/Module.cpp index 49475057e..93a7178bf 100644 --- a/slsDetectorSoftware/src/Module.cpp +++ b/slsDetectorSoftware/src/Module.cpp @@ -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(F_GET_DEST_UDP_PORT2); + sendToReceiver(F_SET_RECEIVER_UDP_PORT2, udpPort2, nullptr); } }