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
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ struct uart_midi_event_packet uart_midi_process_byte(uint8_t byte) {

if (uart_midi_processor_state_is_sysex) {

// Check for Real-Time Messages first - they must be processed immediately
// even during SysEx, without affecting the SysEx buffer or state
if (uart_midi_is_byte_rtm(byte)) {
// Return RTM immediately without storing in buffer
return (struct uart_midi_event_packet){.length = 1, .byte1 = byte, .byte2 = 0, .byte3 = 0};
}

// store sysex data
uart_midi_processor_buffer[uart_midi_processor_buffer_index] = byte;
uart_midi_processor_buffer_index++;
Expand Down
Loading