mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-09 22:30:03 +02:00
m3: exptime and gatedelay values set from reg variables but not converted to time first
This commit is contained in:
parent
476afed516
commit
f4a2702996
@ -886,8 +886,10 @@ void setCounterMask(uint32_t arg) {
|
||||
updatePacketizing();
|
||||
LOG(logINFO, ("\tUpdating Exptime and Gate Delay\n"));
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
setExpTime(i, exptimeReg[i]);
|
||||
setGateDelay(i, gateDelayReg[i]);
|
||||
uint64_t ns = exptimeReg[i] / (1E-9 * getFrequency(SYSTEM_C0));
|
||||
setExpTime(i, ns);
|
||||
ns = gateDelayReg[i] / (1E-9 * getFrequency(SYSTEM_C0));
|
||||
setGateDelay(i, ns);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user