From c9e280c66af3291a575ba15b9ed01cdde77a2d0d Mon Sep 17 00:00:00 2001 From: Minggang Wang Date: Tue, 22 Jul 2025 12:49:51 +0800 Subject: [PATCH] Fix example errors --- example/actions/action_client/action-client-cancel-example.js | 2 +- example/timer/timer-example.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/actions/action_client/action-client-cancel-example.js b/example/actions/action_client/action-client-cancel-example.js index cce42f60..272d5459 100644 --- a/example/actions/action_client/action-client-cancel-example.js +++ b/example/actions/action_client/action-client-cancel-example.js @@ -57,7 +57,7 @@ class FibonacciActionClient { feedbackCallback(feedbackMessage) { this._node .getLogger() - .info(`Received feedback: ${feedbackMessage.feedback.sequence}`); + .info(`Received feedback: ${feedbackMessage.sequence}`); } async timerCallback(goalHandle) { diff --git a/example/timer/timer-example.js b/example/timer/timer-example.js index 0f03ac3e..da43c84d 100644 --- a/example/timer/timer-example.js +++ b/example/timer/timer-example.js @@ -21,7 +21,7 @@ rclnodejs .then(() => { let node = rclnodejs.createNode('timer_example_node'); - let timer = node.createTimer(BigInt(1000000), () => { + let timer = node.createTimer(BigInt(1000000000), () => { console.log('One second escaped!'); console.log('Cancel this timer.');