diff options
| author | atok <[email protected]> | 2022-09-11 18:18:10 +0200 |
|---|---|---|
| committer | atoktoto <[email protected]> | 2022-11-13 14:31:12 +0100 |
| commit | 0763bc59794f8d8b4850399a89766e44ddcb742b (patch) | |
| tree | 70b937b43d2c99cab1b01b6e83ec39d5b0e649c5 /examples | |
| parent | 81de7f3d23ed148a661264e88e10b3bb7c1c0473 (diff) | |
Fix printf statement
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/midi_rx/src/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/host/midi_rx/src/main.c b/examples/host/midi_rx/src/main.c index 64428932f..c12df33f2 100644 --- a/examples/host/midi_rx/src/main.c +++ b/examples/host/midi_rx/src/main.c @@ -122,7 +122,6 @@ void tuh_midi_mount_cb(uint8_t dev_addr, uint8_t in_ep, uint8_t out_ep, uint8_t void tuh_midi_umount_cb(uint8_t dev_addr, uint8_t instance) { TU_LOG1("MIDI device address = %d, instance = %d is unmounted\r\n", dev_addr, instance); - midi_dev_addr = 0; } @@ -142,7 +141,7 @@ void tuh_midi_rx_cb(uint8_t dev_addr, uint32_t num_packets) uint8_t buffer[48]; uint32_t bytes_read = tuh_midi_stream_read(dev_addr, &cable_num, buffer, sizeof(buffer)); - TU_LOG1("Read bytes %u cable %u", bytes_read, cable_num); + TU_LOG1("Read bytes %lu cable %u", bytes_read, cable_num); TU_LOG1_MEM(buffer, bytes_read, 2); } |
