mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
ctb bug fix:digitial io delay and led were checking if receiver was online instead of detector
This commit is contained in:
parent
192ac229e9
commit
25d7781878
@ -4824,7 +4824,7 @@ int slsDetector::setLEDEnable(int enable) {
|
|||||||
int arg = enable;
|
int arg = enable;
|
||||||
int retval = -1;
|
int retval = -1;
|
||||||
FILE_LOG(logDEBUG1) << "Sending LED Enable: " << arg;
|
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,
|
auto client = DetectorSocket(detector_shm()->hostname,
|
||||||
detector_shm()->controlPort);
|
detector_shm()->controlPort);
|
||||||
ret = client.sendCommandThenRead(fnum, &arg, sizeof(arg), &retval,
|
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]
|
<< args[0] << ", delay: " << std::dec << args[1]
|
||||||
<< " ps";
|
<< " ps";
|
||||||
|
|
||||||
if (detector_shm()->receiverOnlineFlag == ONLINE_FLAG) {
|
if (detector_shm()->onlineFlag == ONLINE_FLAG) {
|
||||||
auto client = DetectorSocket(detector_shm()->hostname,
|
auto client = DetectorSocket(detector_shm()->hostname,
|
||||||
detector_shm()->controlPort);
|
detector_shm()->controlPort);
|
||||||
ret = client.sendCommandThenRead(fnum, args, sizeof(args), nullptr, 0);
|
ret = client.sendCommandThenRead(fnum, args, sizeof(args), nullptr, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user