diff --git a/slsDetectorServers/ctbDetectorServer/bin/ctbDetectorServer_developer b/slsDetectorServers/ctbDetectorServer/bin/ctbDetectorServer_developer index 06501fb02..8dea4330e 100755 Binary files a/slsDetectorServers/ctbDetectorServer/bin/ctbDetectorServer_developer and b/slsDetectorServers/ctbDetectorServer/bin/ctbDetectorServer_developer differ diff --git a/slsDetectorServers/ctbDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/ctbDetectorServer/slsDetectorFunctionList.c index b6b7e482c..afada678c 100755 --- a/slsDetectorServers/ctbDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/ctbDetectorServer/slsDetectorFunctionList.c @@ -1423,13 +1423,13 @@ int setHighVoltage(int val){ uint32_t addr = POWER_REG; // switch to external high voltage - bus_w(addr, bus_r(addr) & (~POWER_HV_INTERNAL_SLCT_OFST)); + bus_w(addr, bus_r(addr) & (~POWER_HV_INTERNAL_SLCT_MSK)); MAX1932_Set(val); // switch on internal high voltage, if set if (val > 0) - bus_w(addr, bus_r(addr) | POWER_HV_INTERNAL_SLCT_OFST); + bus_w(addr, bus_r(addr) | POWER_HV_INTERNAL_SLCT_MSK); highvoltage = val; }