mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 21:41:09 +00:00
fixed compiler warning src/tusb.c
This commit is contained in:
parent
f21b792712
commit
23450d4f6b
@ -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;
|
uint8_t const *buf8 = (uint8_t const *) buf;
|
||||||
|
|
||||||
char format[] = "%00X";
|
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;
|
const uint8_t item_per_line = 16 / size;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user