1
0
Fork 0

Print unhandled SysEx as hexadecimal

This commit is contained in:
Robbert van der Helm 2023-01-31 22:25:13 +01:00
parent 89b81b38c3
commit 69b87b7a26

View file

@ -471,12 +471,12 @@ impl<S: SysExMessage> NoteEvent<S> {
None => {
if event_type == 0xf0 {
if midi_data.len() <= 32 {
nih_trace!("Unhandled MIDI system message: {midi_data:?}");
nih_trace!("Unhandled MIDI system message: {midi_data:02x?}");
} else {
nih_trace!("Unhandled MIDI system message of {} bytes", midi_data.len());
}
} else {
nih_trace!("Unhandled MIDI status byte {status_byte:x}");
nih_trace!("Unhandled MIDI status byte {status_byte:#x}");
}
Err(event_type)