mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Print unhandled SysEx as hexadecimal
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user