Skip to content

Commit ed78b35

Browse files
committed
Makes it work with the integration demo.
Signed-off-by: Agustin Alba Chicar <[email protected]>
1 parent f503c84 commit ed78b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rclrs/src/timer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl Timer {
123123
}
124124

125125
/// Executes the callback of the timer (this is triggered by the executor or the node directly)
126-
pub fn call(&mut self) -> Result<(), RclrsError>
126+
pub fn call(&self) -> Result<(), RclrsError>
127127
{
128128
let mut rcl_timer = self.rcl_timer.lock().unwrap();
129129
to_rclrs_result(unsafe {rcl_timer_call(&mut *rcl_timer)})
@@ -146,7 +146,7 @@ impl Timer {
146146
})
147147
}
148148

149-
pub(crate) fn execute(&self) -> Result<(), RclrsError>
149+
pub/* (crate)*/ fn execute(&self) -> Result<(), RclrsError>
150150
{
151151
if self.is_ready()?
152152
{

0 commit comments

Comments
 (0)