Skip to content

Commit 9f37044

Browse files
committed
Leverage rcl_timer_init2 since Jazzy (#993)
Fix: #992
1 parent 30d9fcf commit 9f37044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rcl_bindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ NAN_METHOD(CreateTimer) {
325325
reinterpret_cast<rcl_timer_t*>(malloc(sizeof(rcl_timer_t)));
326326
*timer = rcl_get_zero_initialized_timer();
327327

328-
#if ROS_VERSION > 2205 // After humble.
328+
#if ROS_VERSION > 2305 // After Iron.
329329
THROW_ERROR_IF_NOT_EQUAL(
330330
RCL_RET_OK,
331331
rcl_timer_init2(timer, clock, context, RCL_MS_TO_NS(period_ms), nullptr,

0 commit comments

Comments
 (0)