added USB IDs for DJ Console 4-MX

This commit is contained in:
Matthias Bethke 2016-08-03 13:27:34 +07:00
parent f5a8148993
commit 18eefffa19
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <libusb.h> #include <libusb.h>
#include <string.h> #include <string.h>
@ -29,6 +30,7 @@ const struct device devices[] = {
{"Steel", 0xb102, 0x83, 0x04}, {"Steel", 0xb102, 0x83, 0x04},
{"MP3e2", 0xb105, 0x82, 0x03}, {"MP3e2", 0xb105, 0x82, 0x03},
{"4Set", 0xb10c, 0x84, 0x02}, {"4Set", 0xb10c, 0x84, 0x02},
{"4-MX", 0xb109, 0x82, 0x03},
{0, 0, 0, 0} {0, 0, 0, 0}
}; };
@ -70,7 +72,7 @@ main(int argc, char **argv)
} }
if (ret < 0) { if (ret < 0) {
printf("Can't figure out what to call this thing.\n"); printf("%s: can't figure out what to call this thing.\n", libusb_error_name(ret));
return 69; return 69;
} }
} }

1
usb.c
View File

@ -25,6 +25,7 @@ struct device {
const struct device devices[] = { const struct device devices[] = {
{ 0xb102, 1, 0x83, 0x04 }, // Steel { 0xb102, 1, 0x83, 0x04 }, // Steel
{ 0xb105, 1, 0x82, 0x03 }, // MP3e2 { 0xb105, 1, 0x82, 0x03 }, // MP3e2
{ 0xb109, 4, 0x82, 0x03 }, // 4-MX
{ 0, 0, 0, 0 } { 0, 0, 0, 0 }
}; };