mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-15 23:24:18 +01:00
eiger rxr: setting exptime now also sets subperiod in rxr master file
This commit is contained in:
@@ -557,7 +557,9 @@ int ClientInterface::set_period(Interface &socket) {
|
||||
int ClientInterface::set_subexptime(Interface &socket) {
|
||||
auto value = socket.Receive<int64_t>();
|
||||
FILE_LOG(logDEBUG1) << "Setting period to " << value << "ns";
|
||||
uint64_t subdeadtime = impl()->getSubPeriod() - impl()->getSubExpTime();
|
||||
impl()->setSubExpTime(value);
|
||||
impl()->setSubPeriod(impl()->getSubExpTime() + subdeadtime);
|
||||
return socket.Send(OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user