Skip to content

Commit

Permalink
fixed compiler warning src/tusb.c
Browse files Browse the repository at this point in the history
  • Loading branch information
heikokue committed Feb 24, 2024
1 parent f21b792 commit 23450d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ void tu_print_mem(void const *buf, uint32_t count, uint8_t indent)
uint8_t const *buf8 = (uint8_t const *) buf;

char format[] = "%00X";
format[2] += 2*size;
format[2] += (uint8_t) (2*size); // 1 byte = 2 hex digits

const uint8_t item_per_line = 16 / size;

Expand Down

0 comments on commit 23450d4

Please sign in to comment.