Skip to content

Commit d74754c

Browse files
committed
Revert example
1 parent 2975572 commit d74754c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/micro-ros_publisher/micro-ros_publisher.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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

2525
void 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

8584
void 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
}

extras/library_generation/colcon_verylowmem.meta

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
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": {

src/cortex-m0plus/libmicroros.a

180 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)