Skip to content
Snippets Groups Projects
Commit 6e959bf1 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

PeriodicTrigger: properly set version number when sending manually triggers from tests

parent 2018b8ba
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ namespace ChimeraTK {
ScalarOutput<uint64_t> tick{this, "tick", "", "Timer tick. Counts the trigger number starting from 0."};
void sendTrigger() {
setCurrentVersionNumber({});
++tick;
tick.write();
}
......@@ -49,9 +50,7 @@ namespace ChimeraTK {
boost::this_thread::interruption_point();
std::this_thread::sleep_until(t);
setCurrentVersionNumber({});
tick++;
tick.write();
sendTrigger();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment