Skip to content

Commit 969d7a1

Browse files
authored
Fix service server demo (#36)
* Update main.c * Update CI
1 parent 683f271 commit 969d7a1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
source /opt/ros/foxy/setup.bash
2222
source install/local_setup.bash
2323
ros2 run micro_ros_setup create_firmware_ws.sh host
24-
rm -rf uros/micro-ROS-demos
24+
rm -rf src/uros/micro-ROS-demos
2525
- uses: actions/checkout@v2
2626
with:
27-
path: uros/micro-ROS-demos
27+
path: src/uros/micro-ROS-demos
2828
- name: Build
2929
run: |
3030
cd /uros_ws

rclc/addtwoints_server/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <stdio.h>
99
#include <unistd.h>
1010

11-
#define RCCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printk("Failed status on line %d: %d. Aborting.\n",__LINE__,(int)temp_rc);}}
12-
#define RCSOFTCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printk("Failed status on line %d: %d. Continuing.\n",__LINE__,(int)temp_rc);}}
11+
#define RCCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printf("Failed status on line %d: %d. Aborting.\n",__LINE__,(int)temp_rc);}}
12+
#define RCSOFTCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printf("Failed status on line %d: %d. Continuing.\n",__LINE__,(int)temp_rc);}}
1313

1414
void service_callback(const void * req, void * res){
1515
example_interfaces__srv__AddTwoInts_Request * req_in = (example_interfaces__srv__AddTwoInts_Request *) req;

0 commit comments

Comments
 (0)