Skip to content

Software crash by using SysEx RxHandler without MIDI.read() #27

@Taroc22

Description

@Taroc22

Hey, maybe you can take some of your time looking into my problem.

I am using an Arduino Due to receive MSC data (SysEx Messages) from the MA2 onPC Software. I only want to read this data by using the .setHandleSystemExclusive() function and not have to call MIDI.read() additionally in the loop function because i don't need to read other midi data than SysEx. The problem that occurs if i leave MIDI.read() out is that the ma2 onPC Software crashes. If the line is left in the code, everything works perfectly.
Is it really absolutely necessary to call .read() periodically to clear some buffer or something?

#include <USB-MIDI.h>

USBMIDI_CREATE_DEFAULT_INSTANCE();

void setup()
{
MIDI.begin(1);
}
void loop()
{
MIDI.read(); //If this line is left out, the program crashes
}

I would really appreciate a helpful answer and thank you for investing the time in creating this library👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions