We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c16b8 commit a80a5c9Copy full SHA for a80a5c9
examples/arduino/z_scout.ino
@@ -47,7 +47,7 @@ void fprintzid(z_id_t zid) {
47
void fprintwhatami(z_whatami_t whatami) {
48
z_view_string_t s;
49
z_whatami_to_view_string(whatami, &s);
50
- Serial.write(z_string_data(z_loan(s)), z_string_len(z_loan(s)));
+ Serial.write(z_string_data(z_view_string_loan(&s)), z_string_len(z_view_string_loan(&s)));
51
}
52
53
void fprintlocators(const z_loaned_string_array_t *locs) {
@@ -71,7 +71,7 @@ void fprinthello(const z_loaned_hello_t *hello) {
71
Serial.print(", whatami: ");
72
fprintwhatami(z_hello_whatami(hello));
73
Serial.print(", locators: ");
74
- fprintlocators(z_hello_locators(z_loan(hello)));
+ fprintlocators(z_hello_locators(hello));
75
Serial.println(" }");
76
77
0 commit comments