Update usbh_midi.cpp

Added PID for Novation LaunchKey 25 MK2
This commit is contained in:
nixator 2018-04-06 18:17:48 +02:00 committed by GitHub
parent 208a0a75cf
commit 71e905e0d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -346,8 +346,8 @@ void USBH_MIDI::setupDeviceSpecific()
{
// Novation
if( vid == 0x1235 ) {
// LaunchPad's endpoint attirbute is interrupt (0x20:S, 0x36:Mini, 0x51:Pro, 0x69:MK2)
if(pid == 0x20 || pid == 0x36 || pid == 0x51 || pid == 0x69 ) {
// LaunchPad's endpoint attirbute is interrupt (0x20:S, 0x36:Mini, 0x51:Pro, 0x69:MK2, 0x7b:Launchkey25 MK2)
if(pid == 0x20 || pid == 0x36 || pid == 0x51 || pid == 0x69 || pid == 0x7b ) {
bTransferTypeMask = 2;
}
}