{"action":"opened","issue":{"url":"https://api.github.com/repos/FortySevenEffects/arduino_midi_library/issues/66","repository_url":"https://api.github.com/repos/FortySevenEffects/arduino_midi_library","labels_url":"https://api.github.com/repos/FortySevenEffects/arduino_midi_library/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/FortySevenEffects/arduino_midi_library/issues/66/comments","events_url":"https://api.github.com/repos/FortySevenEffects/arduino_midi_library/issues/66/events","html_url":"https://github.com/FortySevenEffects/arduino_midi_library/issues/66","id":188362617,"number":66,"title":"Errors trying to override Max SYsex msg length","user":{"login":"bossredman","id":22073685,"avatar_url":"https://avatars.githubusercontent.com/u/22073685?v=3","gravatar_id":"","url":"https://api.github.com/users/bossredman","html_url":"https://github.com/bossredman","followers_url":"https://api.github.com/users/bossredman/followers","following_url":"https://api.github.com/users/bossredman/following{/other_user}","gists_url":"https://api.github.com/users/bossredman/gists{/gist_id}","starred_url":"https://api.github.com/users/bossredman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bossredman/subscriptions","organizations_url":"https://api.github.com/users/bossredman/orgs","repos_url":"https://api.github.com/users/bossredman/repos","events_url":"https://api.github.com/users/bossredman/events{/privacy}","received_events_url":"https://api.github.com/users/bossredman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-09T21:56:03Z","updated_at":"2016-11-09T21:56:03Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to override the Sysex Max length locally in my sketch as advised by adding the following code after `  #include <MIDI.h>:`\r\n\r\n`  Struct MySettings : public midi::DefaultSettings`\r\n`{\r\n    static const unsigned SysExMaxSize = 1024; // Accept SysEx messages up to 1024 bytes long.\r\n};`\r\n\r\n`// Create a 'MIDI' object using MySettings bound to Serial1.`\r\n`MIDI_CREATE_CUSTOM_INSTANCE(HardwareSerial, Serial1, MIDI, MySettings);`\r\n\r\nBut I get the following errors:\r\n\r\n**_C:\\Users\\Medion\\Documents\\Arduino\\_Sketches_TEENSY_36_MFC\\Midi_to_AXEFX_Teensy-36_rev62\\Midi_to_AXEFX_Teensy-36_rev62.ino:14:30: error: 'midi' has not been declared\r\n\r\n   struct MySettings : public midi::DefaultSettings\r\n\r\nC:\\Users\\Medion\\Documents\\Arduino\\_Sketches_TEENSY_36_MFC\\Midi_to_AXEFX_Teensy-36_rev62\\Midi_to_AXEFX_Teensy-36_rev62.ino:14:36: error: expected '{' before 'DefaultSettings'\r\n\r\n   struct MySettings : public midi::DefaultSettings\r\n\r\nC:\\Users\\Medion\\Documents\\Arduino\\_Sketches_TEENSY_36_MFC\\Midi_to_AXEFX_Teensy-36_rev62\\Midi_to_AXEFX_Teensy-36_rev62.ino:15:1: error: invalid type in declaration before '{' token\r\n\r\n {\r\n\r\nC:\\Users\\Medion\\Documents\\Arduino\\_Sketches_TEENSY_36_MFC\\Midi_to_AXEFX_Teensy-36_rev62\\Midi_to_AXEFX_Teensy-36_rev62.ino:16:5: error: expected primary-expression before 'static'\r\n\r\n     static const unsigned SysExMaxSize = 1024; // Accept SysEx messages up to 1024 bytes long.\r\n\r\nC:\\Users\\Medion\\Documents\\Arduino\\_Sketches_TEENSY_36_MFC\\Midi_to_AXEFX_Teensy-36_rev62\\Midi_to_AXEFX_Teensy-36_rev62.ino:16:5: error: expected '}' before 'static'\r\n\r\nC:\\Users\\Medion\\Documents\\Arduino\\_Sketches_TEENSY_36_MFC\\Midi_to_AXEFX_Teensy-36_rev62\\Midi_to_AXEFX_Teensy-36_rev62.ino:16:5: error: expected ',' or ';' before 'static'\r\n\r\nC:\\Users\\Medion\\Documents\\Arduino\\_Sketches_TEENSY_36_MFC\\Midi_to_AXEFX_Teensy-36_rev62\\Midi_to_AXEFX_Teensy-36_rev62.ino:18:1: error: expected declaration before '}' token\r\n\r\n };_**\r\n\r\n\r\nFairly new to this so would appreciate any help pls.\r\n"}}
{"actor":{"display_login":"bossredman"}}