Skip to content

Commit

Permalink
Merge pull request #2490 from IngHK/compiler_warning
Browse files Browse the repository at this point in the history
fixed compiler warning src/tusb.c
  • Loading branch information
hathach authored Feb 26, 2024
2 parents f21b792 + 23450d4 commit 2720392
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 2720392

Please sign in to comment.