Skip to content

Commit

Permalink
Fix FunctionGenerator: reset current time only if signal type was cha…
Browse files Browse the repository at this point in the history
…nged. (fair-acc#495)

Signed-off-by: drslebedev <[email protected]>
  • Loading branch information
drslebedev authored Jan 14, 2025
1 parent cb9487a commit f5909b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ The parameters will automatically update when a Tag containing the "context" fie
T _timeTick = T(1.) / static_cast<T>(sample_rate);

void settingsChanged(const property_map& /*old_settings*/, const property_map& new_settings) {
if (new_settings.contains(gr::tag::TRIGGER_META_INFO.shortKey()) || new_settings.contains(function_generator::toString(function_generator::signal_type))) {
if (new_settings.contains(function_generator::toString(function_generator::signal_type))) {
_currentTime = T(0.);
_signalType = function_generator::parse<function_generator::SignalType>(signal_type);
}
Expand Down

0 comments on commit f5909b9

Please sign in to comment.