New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More SysEx issues. #225
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
Board Info:
-
Custom ATMega1284p board
- Uses Serial1 for MIDI communication, no other relevant hardware for this specific issue.
1.8.13
Describe your project and what you expect to happen:
My project needs to receive a maximum of 2100 bytes of sysex data.
Describe your problem (what does not work):
Changing the SysExMaxSize following instructions and using the MIDI_CREATE_CUSTOM_INSTANCE macro does not work.
Also, the Settings need the midi BaudRate.
The attached code works when bypassing the macro.
Steps to reproduce
struct MySettings : public midi::DefaultSettings
{
static const long BaudRate = 31250;
static const unsigned SysExMaxSize = 2100; // Accept SysEx messages up to 1024 bytes long.
static const bool UseRunningStatus = true;
};
//MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial1, MIDI, MySettings); // This does NOT change the Sysex Settings !!!
midi::SerialMIDI Serial1MIDI(Serial1);
midi::MidiInterface<midi::SerialMIDI, MySettings> MIDI((midi::SerialMIDI&)Serial1MIDI);
The text was updated successfully, but these errors were encountered: