FortySevenEffects / arduino_midi_library

MIDI for Arduino
MIT License
1.56k stars 252 forks source link

class usbMidi::usbMidiTransport' has no member named 'thruActivated' #149

Closed deladriere closed 4 years ago

deladriere commented 4 years ago

when I do

#include <USB-MIDI.h>
USBMIDI_CREATE_DEFAULT_INSTANCE();

I get this error

MIDI.hpp:97:34: error: 'class usbMidi::usbMidiTransport' has no member named 'thruActivated'
     mThruActivated  = mTransport.thruActivated;

But if I edit MIDI.hpp and comment that line: it compiles ok

lathoub commented 4 years ago

Thanks for signalling @deladriere. Somehow the thruActivated was not picked up in the v1.1.1 release of the USB-MIDI library. I fixed it in release v1.1.2 and uploaded to GitHub (should propagate to Arduino IDE within 24hrs).

deladriere commented 4 years ago

Ok thanks, it's working fine

YANG-Mingcong commented 3 years ago

Still get the same Issue

YANG-Mingcong commented 3 years ago

Cause in Arduino, MIDI-USB 1.1.1 version has been set as depended library. I suggest change it to 1.1.2. Thanks a lot.