diff --git a/Modules/include/PeriodicTrigger.h b/Modules/include/PeriodicTrigger.h index 6902edef63d85a2f63ff3d8619a6b1ff4765a0a7..818ca2c15589e4dcda471b7c9d002acf74ab65f8 100644 --- a/Modules/include/PeriodicTrigger.h +++ b/Modules/include/PeriodicTrigger.h @@ -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(); } }