client bug fix: was configuring mac even for a get of tengiga enable

This commit is contained in:
maliakal_d 2019-08-23 10:21:20 +02:00
parent 322970ebed
commit 8ec0ac4eb3

View File

@ -3199,7 +3199,9 @@ int slsDetector::enableTenGigabitEthernet(int value) {
sendToDetector(F_ENABLE_TEN_GIGA, value, retval); sendToDetector(F_ENABLE_TEN_GIGA, value, retval);
FILE_LOG(logDEBUG1) << "10Gbe: " << retval; FILE_LOG(logDEBUG1) << "10Gbe: " << retval;
shm()->tenGigaEnable = retval; shm()->tenGigaEnable = retval;
configureMAC(); if (value >= 0) {
configureMAC();
}
if (shm()->useReceiverFlag) { if (shm()->useReceiverFlag) {
retval = -1; retval = -1;
value = shm()->tenGigaEnable; value = shm()->tenGigaEnable;