finetuning printout

This commit is contained in:
maliakal_d 2018-02-07 15:22:19 +01:00
parent 5198e67dbd
commit a6b917851c

View File

@ -6727,12 +6727,12 @@ int slsDetector::configureMAC(){
if (strcasecmp(arg[0],thisDetector->detectorMAC)) { if (strcasecmp(arg[0],thisDetector->detectorMAC)) {
memset(thisDetector->detectorMAC, 0, MAX_STR_LENGTH); memset(thisDetector->detectorMAC, 0, MAX_STR_LENGTH);
strcpy(thisDetector->detectorMAC, arg[0]); strcpy(thisDetector->detectorMAC, arg[0]);
std::cout << "Detector MAC updated to " << thisDetector->detectorMAC << endl; cprintf(RESET,"%d: Detector MAC updated to %s\n", detId, thisDetector->detectorMAC);
} }
if (strcasecmp(arg[1],thisDetector->detectorIP)) { if (strcasecmp(arg[1],thisDetector->detectorIP)) {
memset(thisDetector->detectorIP, 0, MAX_STR_LENGTH); memset(thisDetector->detectorIP, 0, MAX_STR_LENGTH);
strcpy(thisDetector->detectorIP, arg[0]); strcpy(thisDetector->detectorIP, arg[1]);
std::cout << "Detector IP updated to " << thisDetector->detectorIP << endl; cprintf(RESET,"%d: Detector IP updated to %s\n", detId, thisDetector->detectorIP);
} }
} }
} }