shuttleVFD driver: fix VendorID, support newer models (Miska Sulander)
This commit is contained in:
@@ -129,7 +129,7 @@ MODULE_EXPORT int shuttleVFD_init(Driver *drvthis) {
|
||||
struct usb_device *dev;
|
||||
for (dev = bus->devices; dev != NULL; dev = dev->next) {
|
||||
if (dev->descriptor.idVendor == SHUTTLE_VFD_VENDOR_ID &&
|
||||
dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID) {
|
||||
(dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID1 || dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID2)) {
|
||||
p->dev = usb_open(dev);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,8 +56,10 @@ MODULE_EXPORT int shuttleVFD_cellheight(Driver *drvthis);
|
||||
#define SHUTTLE_VFD_CELLHEIGHT 8
|
||||
|
||||
// VFD USB properties
|
||||
#define SHUTTLE_VFD_VENDOR_ID 0x1308
|
||||
#define SHUTTLE_VFD_PRODUCT_ID 0x0003
|
||||
#define SHUTTLE_VFD_VENDOR_ID 0x051c
|
||||
#define SHUTTLE_VFD_PRODUCT_ID1 0x0003
|
||||
// IR-receiver included in this model
|
||||
#define SHUTTLE_VFD_PRODUCT_ID2 0x0005
|
||||
#define SHUTTLE_VFD_INTERFACE_NUM 1
|
||||
|
||||
// VFD USB control message
|
||||
|
||||
Reference in New Issue
Block a user