Skip to content

Commit 03f7253

Browse files
committed
Fix printf statement
1 parent 066e5cb commit 03f7253

File tree

1 file changed

+1
-2
lines changed
  • examples/host/midi_rx/src

1 file changed

+1
-2
lines changed

examples/host/midi_rx/src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ void tuh_midi_mount_cb(uint8_t dev_addr, uint8_t in_ep, uint8_t out_ep, uint8_t
122122
void tuh_midi_umount_cb(uint8_t dev_addr, uint8_t instance)
123123
{
124124
TU_LOG1("MIDI device address = %d, instance = %d is unmounted\r\n", dev_addr, instance);
125-
126125
midi_dev_addr = 0;
127126
}
128127

@@ -142,7 +141,7 @@ void tuh_midi_rx_cb(uint8_t dev_addr, uint32_t num_packets)
142141
uint8_t buffer[48];
143142
uint32_t bytes_read = tuh_midi_stream_read(dev_addr, &cable_num, buffer, sizeof(buffer));
144143

145-
TU_LOG1("Read bytes %u cable %u", bytes_read, cable_num);
144+
TU_LOG1("Read bytes %lu cable %u", bytes_read, cable_num);
146145
TU_LOG1_MEM(buffer, bytes_read, 2);
147146
}
148147

0 commit comments

Comments
 (0)