Skip to content

Commit

Permalink
fix mbed scouting example
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Jul 4, 2024
1 parent a80a5c9 commit 1adeade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mbed/z_scout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void fprintzid(FILE *stream, z_id_t zid) {
void fprintwhatami(FILE *stream, z_whatami_t whatami) {
z_view_string_t s;
z_whatami_to_view_string(whatami, &s);
fprintf(stream, "\"%.*s\"", (int)z_string_len(z_loan(s)), z_string_data(z_loan(s)));
fprintf(stream, "\"%.*s\"", (int)z_string_len(z_view_string_loan(&s)), z_string_data(z_view_string_loan(&s)));
}

void fprintlocators(FILE *stream, const z_loaned_string_array_t *locs) {
Expand Down

0 comments on commit 1adeade

Please sign in to comment.