mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 00:58:01 +02:00
datastream is only for 10g for eiger atm, its mentioned in comments. accordingly handled in receiver. This is better solution, in case it was disabled in 10g, and not possible to set enable in 1g mode, which is given to the receiver
This commit is contained in:
@ -8266,9 +8266,6 @@ int get_datastream(int file_des) {
|
||||
"Only left and right allowed\n",
|
||||
arg);
|
||||
LOG(logERROR, (mess));
|
||||
} else if (enableTenGigabitEthernet(GET_FLAG) == 0) {
|
||||
retval = 1;
|
||||
LOG(logINFO, ("Datastream always enabled for 1g\n"));
|
||||
} else {
|
||||
ret = getDataStream(arg, &retval);
|
||||
LOG(logDEBUG1, ("datastream (%s) retval: %u\n",
|
||||
@ -8315,14 +8312,6 @@ int set_datastream(int file_des) {
|
||||
ret = FAIL;
|
||||
sprintf(mess, "Could not %s. Invalid enable %d. \n", msg, enable);
|
||||
LOG(logERROR, (mess));
|
||||
} else if (enableTenGigabitEthernet(GET_FLAG) == 0 && enable == 0) {
|
||||
ret = FAIL;
|
||||
sprintf(mess,
|
||||
"Could not %s. Disabling is only enabled in 10g mode.\n",
|
||||
msg);
|
||||
LOG(logERROR, (mess));
|
||||
} else if (enableTenGigabitEthernet(GET_FLAG) == 0 && enable == 1) {
|
||||
LOG(logINFO, ("Datastream always enabled for 1g\n"));
|
||||
} else {
|
||||
ret = setDataStream(port, enable);
|
||||
if (ret == FAIL) {
|
||||
|
Reference in New Issue
Block a user