mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-29 01:20:02 +02:00
fix for first udp
This commit is contained in:
parent
19b428a91e
commit
18eeb716ad
@ -1352,6 +1352,7 @@ int getFirstUDPDestination() {
|
|||||||
|
|
||||||
void setFirstUDPDestination(int value) {
|
void setFirstUDPDestination(int value) {
|
||||||
LOG(logINFO, ("Setting first entry to %d\n", value));
|
LOG(logINFO, ("Setting first entry to %d\n", value));
|
||||||
|
bus_w(CONTROL_REG, bus_r(CONTROL_REG) & ~CONTROL_RX_ENDPTS_START_MSK);
|
||||||
bus_w(CONTROL_REG,
|
bus_w(CONTROL_REG,
|
||||||
bus_r(CONTROL_REG) | ((value << CONTROL_RX_ENDPTS_START_OFST) &
|
bus_r(CONTROL_REG) | ((value << CONTROL_RX_ENDPTS_START_OFST) &
|
||||||
CONTROL_RX_ENDPTS_START_MSK));
|
CONTROL_RX_ENDPTS_START_MSK));
|
||||||
|
@ -9249,7 +9249,7 @@ int set_udp_first_dest(int file_des) {
|
|||||||
validate(&ret, mess, arg, retval, "set udp first destination", DEC);
|
validate(&ret, mess, arg, retval, "set udp first destination", DEC);
|
||||||
if (ret == OK) {
|
if (ret == OK) {
|
||||||
firstUDPDestination = arg;
|
firstUDPDestination = arg;
|
||||||
configure_mac();
|
//configure_mac();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user