Skip to content

Commit

Permalink
sync with master
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jul 27, 2018
1 parent c788ec0 commit f938bac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rclpy/src/rclpy/_rclpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3244,8 +3244,9 @@ rclpy_clock_get_now(PyObject * Py_UNUSED(self), PyObject * args)
PyErr_Format(PyExc_RuntimeError, "Failed to allocate memory for time point.");
return NULL;
}
time_point->clock_type = clock->type;

rcl_ret_t ret = rcl_clock_get_now(clock, time_point);
rcl_ret_t ret = rcl_clock_get_now(clock, &time_point->nanoseconds);

if (ret != RCL_RET_OK) {
PyErr_Format(PyExc_RuntimeError,
Expand Down

0 comments on commit f938bac

Please sign in to comment.