File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
examples/micro-ros_publisher Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,13 @@ rcl_timer_t timer;
1919#define LED_PIN 13
2020
2121#define RCCHECK (fn ) { rcl_ret_t temp_rc = fn; if ((temp_rc != RCL_RET_OK)){error_loop ();}}
22- #define RCSOFTCHECK (fn ) { rcl_ret_t temp_rc = fn; if ((temp_rc != RCL_RET_OK)){error_loop (); }}
22+ #define RCSOFTCHECK (fn ) { rcl_ret_t temp_rc = fn; if ((temp_rc != RCL_RET_OK)){}}
2323
2424
2525void error_loop (){
2626 while (1 ){
27- // digitalWrite(LED_PIN, !digitalRead(LED_PIN));
28- delay (300 );
29- SerialUSB.println (" Error" );
27+ digitalWrite (LED_PIN, !digitalRead (LED_PIN));
28+ delay (100 );
3029 }
3130}
3231
@@ -83,5 +82,5 @@ void setup() {
8382}
8483
8584void loop () {
86- RCCHECK (rclc_executor_spin_some (&executor, RCL_MS_TO_NS (100 )));
85+ RCSOFTCHECK (rclc_executor_spin_some (&executor, RCL_MS_TO_NS (100 )));
8786}
Original file line number Diff line number Diff line change 3333 " -DUCLIENT_PROFILE_UDP=OFF" ,
3434 " -DUCLIENT_PROFILE_DISCOVERY=OFF" ,
3535 " -DUCLIENT_PROFILE_SERIAL=ON" ,
36- " -DUCLIENT_EXTERNAL_SERIAL=ON" ,
37- " -DUCLIENT_SERIAL_TRANSPORT_MTU=128"
36+ " -DUCLIENT_EXTERNAL_SERIAL=ON"
3837 ]
3938 },
4039 " rmw_microxrcedds " : {
You can’t perform that action at this time.
0 commit comments