From 87f75630357249e5082b435a9ba852335881331f Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 5 Dec 2018 10:35:57 +0100 Subject: [PATCH] gothard server bug fix: conf gain val instead of always dynamic gain --- .../gotthardDetectorServer/slsDetectorFunctionList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorServers/gotthardDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/gotthardDetectorServer/slsDetectorFunctionList.c index babb7cc88..b7f49c219 100644 --- a/slsDetectorServers/gotthardDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/gotthardDetectorServer/slsDetectorFunctionList.c @@ -1084,7 +1084,7 @@ enum detectorSettings setSettings(enum detectorSettings sett){ } // set conf gain bus_w(addr, bus_r(addr) & ~GAIN_CONFGAIN_MSK); - bus_w(addr, bus_r(addr) | GAIN_CONFGAIN_DYNMC_GAIN_VAL); + bus_w(addr, bus_r(addr) | confgain); FILE_LOG(logINFO, ("\tGain Reg: 0x%x\n", bus_r(addr))); thisSettings = sett; }