Skip to content

Commit

Permalink
fix: uniformize arduino examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Nov 7, 2023
1 parent ec4a7ba commit cbcafa5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
Language: Cpp
BasedOnStyle: Google
IndentWidth: 4
ColumnLimit: 120
Expand Down
5 changes: 4 additions & 1 deletion examples/arduino/z_get.ino
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ void loop() {
}
}
#else
void setup() { Serial.println("ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY but this example requires it."); }
void setup() {
Serial.println("ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY but this example requires it.");
return;
}
void loop() {}
#endif
1 change: 1 addition & 0 deletions examples/arduino/z_pub.ino
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ void loop() {
#else
void setup() {
Serial.println("ERROR: Zenoh pico was compiled without Z_FEATURE_PUBLICATION but this example requires it.");
return;
}
void loop() {}
#endif
1 change: 1 addition & 0 deletions examples/arduino/z_pull.ino
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ void loop() {
#else
void setup() {
Serial.println("ERROR: Zenoh pico was compiled without Z_FEATURE_SUBSCRIPTION but this example requires it.");
return;
}
void loop() {}
#endif
1 change: 1 addition & 0 deletions examples/arduino/z_queryable.ino
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ void loop() { delay(5000); }
#else
void setup() {
Serial.println("ERROR: Zenoh pico was compiled without Z_FEATURE_QUERYABLE but this example requires it.");
return;
}
void loop() {}
#endif
1 change: 1 addition & 0 deletions examples/arduino/z_sub.ino
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ void loop() { delay(5000); }
#else
void setup() {
Serial.println("ERROR: Zenoh pico was compiled without Z_FEATURE_SUBSCRIPTION but this example requires it.");
return;
}
void loop() {}
#endif

0 comments on commit cbcafa5

Please sign in to comment.