Skip to content

Commit

Permalink
Fix to avoid redeclaring already declared parameter `initialize_durat…
Browse files Browse the repository at this point in the history
…ion`

Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Jan 25, 2024
1 parent f48c013 commit 336fc67
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ auto Interpreter::reset() -> void
publisher_of_context->on_deactivate();
}

declare_parameter<int>("initialize_duration", 30);
if (not has_parameter("initialize_duration")) {
declare_parameter<int>("initialize_duration", 30);
}

/*
Although we have not analyzed the details yet, the process of deactivating
Expand Down

0 comments on commit 336fc67

Please sign in to comment.