mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
receiver suimmary print out more clear when it is deactivated and exception when trying to disable data stream in 10g mode
This commit is contained in:
@ -8312,6 +8312,12 @@ 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) {
|
||||
ret = FAIL;
|
||||
sprintf(mess,
|
||||
"Could not %s. Disabling is only enabled in 10g mode.\n",
|
||||
enable);
|
||||
LOG(logERROR, (mess));
|
||||
} else {
|
||||
ret = setDataStream(port, enable);
|
||||
if (ret == FAIL) {
|
||||
|
Reference in New Issue
Block a user