From 03e7a83e74cb469e4756b4d24018043927375eec Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 3 Dec 2018 12:10:37 +0100 Subject: [PATCH] incorrect mac address in config file should set error flag and give fail upon calling readconfig file --- slsDetectorSoftware/slsDetector/slsDetector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 1277a3788..18800cfb5 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -5732,8 +5732,10 @@ int slsDetector::setUDPConnection() { std::cout << "could not configure mac" << endl; } } - }else + }else { ret=FAIL; + setErrorMask((getErrorMask())|(COULD_NOT_CONFIGURE_MAC)); + } #ifdef VERBOSE printReceiverConfiguration(); #endif