mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
eiger server fix: 10genable stop server does not have send_data struct initialized, not configuring mac or setup header for stop server
This commit is contained in:
parent
c836371b7c
commit
1c13dd95a0
@ -8,8 +8,11 @@
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
|
||||
extern int isControlServer;
|
||||
|
||||
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|
||||
|
||||
|
||||
struct LocalLinkInterface ll_beb_local, *ll_beb;
|
||||
|
||||
struct udp_header_type udp_header;
|
||||
@ -97,6 +100,9 @@ int Beb_SetUpUDPHeader(unsigned int header_number, int ten_gig,
|
||||
if (!Beb_activated)
|
||||
return 1;
|
||||
|
||||
if (!isControlServer)
|
||||
return 1;
|
||||
|
||||
u_int32_t bram_phy_addr;
|
||||
u_int32_t *csp0base = 0;
|
||||
if (ten_gig)
|
||||
|
@ -4969,6 +4969,7 @@ int is_udp_configured() {
|
||||
}
|
||||
|
||||
void configure_mac() {
|
||||
if (!isControlServer) {
|
||||
if (is_udp_configured() == OK) {
|
||||
ret = configureMAC();
|
||||
if (ret != OK) {
|
||||
@ -4990,6 +4991,7 @@ void configure_mac() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
configured = FAIL;
|
||||
LOG(logWARNING, ("Configure FAIL, not all parameters configured yet\n"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user