Avoid timer period being set to 0 (#359)
This commit is contained in:
parent
657d9e84c7
commit
5162a99685
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ _recalculate_expire_timer(
|
||||||
rcl_clock_t * clock)
|
rcl_clock_t * clock)
|
||||||
{
|
{
|
||||||
size_t num_inactive_goals = 0u;
|
size_t num_inactive_goals = 0u;
|
||||||
int64_t minimum_period = 0;
|
int64_t minimum_period = timeout;
|
||||||
|
|
||||||
// Get current time (nanosec)
|
// Get current time (nanosec)
|
||||||
int64_t current_time;
|
int64_t current_time;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue