From 370fe4628aa460bb769ff2d4e576d9b61126e97d Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 15 Jun 2021 16:56:16 +0200 Subject: [PATCH] wip --- slsDetectorServers/eigerDetectorServer/FebControl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/slsDetectorServers/eigerDetectorServer/FebControl.c b/slsDetectorServers/eigerDetectorServer/FebControl.c index a59b4316d..413e56a32 100644 --- a/slsDetectorServers/eigerDetectorServer/FebControl.c +++ b/slsDetectorServers/eigerDetectorServer/FebControl.c @@ -999,16 +999,16 @@ int Feb_Control_StartAcquisition() { int Feb_Control_StopAcquisition() { if (Feb_Control_activated) { // sends last - /*unsigned int orig_value = 0; + unsigned int orig_value = 0; if (!Feb_Interface_ReadRegister(Feb_Control_AddressToAll(), DAQ_REG_CTRL, &orig_value)) { LOG(logERROR, ("Could not read DAQ_REG_CHIP_CMDS to send software " "trigger\n")); return 0; - }*/ - if (!Feb_Interface_WriteRegister( - Feb_Control_AddressToAll(), DAQ_REG_CTRL, DAQ_CTRL_STOP, 0, - 0)) { // orig_value | DAQ_CTRL_STOP, 0, 0)) { + } + if (!Feb_Interface_WriteRegister(Feb_Control_AddressToAll(), + DAQ_REG_CTRL, + orig_value | DAQ_CTRL_STOP, 0, 0)) { LOG(logERROR, ("Could not send last frames.\n")); return 0; }