setting udp port

This commit is contained in:
mazzol_a committed 2026-11-16 15:40:01 +01:00
1 parent 76770b8426
commit d9a3a4fd58
1 file changed
+3
+3
View File
@@ -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);
}
}