Skip to content

Commit

Permalink
fix arduino scouting example
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Jul 4, 2024
1 parent a9c16b8 commit a80a5c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/arduino/z_scout.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void fprintzid(z_id_t zid) {
void fprintwhatami(z_whatami_t whatami) {
z_view_string_t s;
z_whatami_to_view_string(whatami, &s);
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)));
}

void fprintlocators(const z_loaned_string_array_t *locs) {
Expand All @@ -71,7 +71,7 @@ void fprinthello(const z_loaned_hello_t *hello) {
Serial.print(", whatami: ");
fprintwhatami(z_hello_whatami(hello));
Serial.print(", locators: ");
fprintlocators(z_hello_locators(z_loan(hello)));
fprintlocators(z_hello_locators(hello));
Serial.println(" }");
}

Expand Down

0 comments on commit a80a5c9

Please sign in to comment.