Skip to content

Commit

Permalink
Leverage rcl_timer_init2 since Jazzy (#993)
Browse files Browse the repository at this point in the history
Fix: #992
  • Loading branch information
minggangw authored Aug 13, 2024
1 parent efadcd4 commit 99fe923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rcl_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ NAN_METHOD(CreateTimer) {
reinterpret_cast<rcl_timer_t*>(malloc(sizeof(rcl_timer_t)));
*timer = rcl_get_zero_initialized_timer();

#if ROS_VERSION > 2205 // After humble.
#if ROS_VERSION > 2305 // After Iron.
THROW_ERROR_IF_NOT_EQUAL(
RCL_RET_OK,
rcl_timer_init2(timer, clock, context, RCL_MS_TO_NS(period_ms), nullptr,
Expand Down

0 comments on commit 99fe923

Please sign in to comment.