Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion faderpunk/src/tasks/midi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ pub async fn midi_in_task<'a>(
if len == 0 {
continue;
}
let packets = usb_rx_buf[..len].chunks_exact(4);
let (packets, _) = usb_rx_buf[..len].as_chunks::<4>();
for packet in packets {
let cable = packet[0] >> 4;
let msg_len = len_from_cin(packet[0]);
Expand Down