shuttleVFD: Add support for devices with USB VID 0x1308 again. This was lost
when support for newer devices was added.
This commit is contained in:
@@ -23,6 +23,7 @@ v.0.5dev (ongoing development)
|
||||
* server core: New network input buffering
|
||||
* hd44780: Extended subdriver API and performance improvement for lcd2usb
|
||||
* hd44780: Add KOI8-R character mapping (Yura Scheglyuk)
|
||||
* shuttleVFD: Add support for devices with USB VID 0x1308 again
|
||||
|
||||
v0.5.3
|
||||
+ lcdexec: notification when called program finishes
|
||||
|
||||
@@ -139,7 +139,8 @@ MODULE_EXPORT int shuttleVFD_init(Driver *drvthis)
|
||||
for (bus = usb_get_busses(); bus != NULL; bus = bus->next) {
|
||||
struct usb_device *dev;
|
||||
for (dev = bus->devices; dev != NULL; dev = dev->next) {
|
||||
if (dev->descriptor.idVendor == SHUTTLE_VFD_VENDOR_ID &&
|
||||
if ((dev->descriptor.idVendor == SHUTTLE_VFD_VENDOR_ID1 ||
|
||||
dev->descriptor.idVendor == SHUTTLE_VFD_VENDOR_ID2) &&
|
||||
(dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID1 ||
|
||||
dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID2)) {
|
||||
p->dev = usb_open(dev);
|
||||
|
||||
@@ -56,7 +56,8 @@ MODULE_EXPORT int shuttleVFD_cellheight(Driver *drvthis);
|
||||
#define SHUTTLE_VFD_CELLHEIGHT 8
|
||||
|
||||
// VFD USB properties
|
||||
#define SHUTTLE_VFD_VENDOR_ID 0x051c
|
||||
#define SHUTTLE_VFD_VENDOR_ID1 0x1308
|
||||
#define SHUTTLE_VFD_VENDOR_ID2 0x051c
|
||||
#define SHUTTLE_VFD_PRODUCT_ID1 0x0003
|
||||
// IR-receiver included in this model
|
||||
#define SHUTTLE_VFD_PRODUCT_ID2 0x0005
|
||||
|
||||
Reference in New Issue
Block a user