You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adafruit_USBD_MIDI implements Stream, and transitively Print.
Print overloads write() with several versions, only one of which must be implemented, write(uint8_t).
Because Adafruit_USBD_MIDI declares write(uint8_t) in its class definition (as it must), it will _lose_ the overloaded versions, unless explicitly including them with a using declaration... Which is what this commit does.
Without this using declaration, users of this class cannot call write(const char* str) or write(const uint8_t *, size_t) as they would expect, since it inherits from Print.
0 commit comments