Print unhandled SysEx as hexadecimal
This commit is contained in:
parent
89b81b38c3
commit
69b87b7a26
|
@ -471,12 +471,12 @@ impl<S: SysExMessage> NoteEvent<S> {
|
||||||
None => {
|
None => {
|
||||||
if event_type == 0xf0 {
|
if event_type == 0xf0 {
|
||||||
if midi_data.len() <= 32 {
|
if midi_data.len() <= 32 {
|
||||||
nih_trace!("Unhandled MIDI system message: {midi_data:?}");
|
nih_trace!("Unhandled MIDI system message: {midi_data:02x?}");
|
||||||
} else {
|
} else {
|
||||||
nih_trace!("Unhandled MIDI system message of {} bytes", midi_data.len());
|
nih_trace!("Unhandled MIDI system message of {} bytes", midi_data.len());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nih_trace!("Unhandled MIDI status byte {status_byte:x}");
|
nih_trace!("Unhandled MIDI status byte {status_byte:#x}");
|
||||||
}
|
}
|
||||||
|
|
||||||
Err(event_type)
|
Err(event_type)
|
||||||
|
|
Loading…
Reference in a new issue