From 25d7781878a8c07ed40e6267be707777357ee38e Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 12 Apr 2019 15:33:15 +0200 Subject: [PATCH] ctb bug fix:digitial io delay and led were checking if receiver was online instead of detector --- slsDetectorSoftware/src/slsDetector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/src/slsDetector.cpp b/slsDetectorSoftware/src/slsDetector.cpp index 76ac1d4f2..8b4cfcc1e 100755 --- a/slsDetectorSoftware/src/slsDetector.cpp +++ b/slsDetectorSoftware/src/slsDetector.cpp @@ -4824,7 +4824,7 @@ int slsDetector::setLEDEnable(int enable) { int arg = enable; int retval = -1; FILE_LOG(logDEBUG1) << "Sending LED Enable: " << arg; - if (detector_shm()->receiverOnlineFlag == ONLINE_FLAG) { + if (detector_shm()->onlineFlag == ONLINE_FLAG) { auto client = DetectorSocket(detector_shm()->hostname, detector_shm()->controlPort); ret = client.sendCommandThenRead(fnum, &arg, sizeof(arg), &retval, @@ -4845,7 +4845,7 @@ int slsDetector::setDigitalIODelay(uint64_t pinMask, int delay) { << args[0] << ", delay: " << std::dec << args[1] << " ps"; - if (detector_shm()->receiverOnlineFlag == ONLINE_FLAG) { + if (detector_shm()->onlineFlag == ONLINE_FLAG) { auto client = DetectorSocket(detector_shm()->hostname, detector_shm()->controlPort); ret = client.sendCommandThenRead(fnum, args, sizeof(args), nullptr, 0);