Skip to content

Commit 0e10f41

Browse files
authored
Fix spin time (#27)
* Update app.c * Update app.c
1 parent b666c69 commit 0e10f41

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/int32_publisher/app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void appMain(void * arg)
6767
msg.data = 0;
6868

6969
while(1){
70-
rclc_executor_spin_some(&executor, 100);
70+
rclc_executor_spin_some(&executor, RCL_MS_TO_NS(100));
7171
usleep(100000);
7272
}
7373

apps/int32_subscriber/app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void appMain(void * arg)
4747
RCCHECK(rclc_executor_add_subscription(&executor, &subscriber, &msg, &subscription_callback, ON_NEW_DATA));
4848

4949
while(1){
50-
rclc_executor_spin_some(&executor, 100);
50+
rclc_executor_spin_some(&executor, RCL_MS_TO_NS(100));
5151
usleep(100000);
5252
}
5353

0 commit comments

Comments
 (0)