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:
mmdolze
2010-02-04 22:02:37 +00:00
parent b2348d5b53
commit 948035d860
3 changed files with 12 additions and 9 deletions
+1
View File
@@ -23,6 +23,7 @@ v.0.5dev (ongoing development)
* server core: New network input buffering * server core: New network input buffering
* hd44780: Extended subdriver API and performance improvement for lcd2usb * hd44780: Extended subdriver API and performance improvement for lcd2usb
* hd44780: Add KOI8-R character mapping (Yura Scheglyuk) * hd44780: Add KOI8-R character mapping (Yura Scheglyuk)
* shuttleVFD: Add support for devices with USB VID 0x1308 again
v0.5.3 v0.5.3
+ lcdexec: notification when called program finishes + lcdexec: notification when called program finishes
+2 -1
View File
@@ -139,7 +139,8 @@ MODULE_EXPORT int shuttleVFD_init(Driver *drvthis)
for (bus = usb_get_busses(); bus != NULL; bus = bus->next) { for (bus = usb_get_busses(); bus != NULL; bus = bus->next) {
struct usb_device *dev; struct usb_device *dev;
for (dev = bus->devices; dev != NULL; dev = dev->next) { 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_ID1 ||
dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID2)) { dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID2)) {
p->dev = usb_open(dev); p->dev = usb_open(dev);
+2 -1
View File
@@ -56,7 +56,8 @@ MODULE_EXPORT int shuttleVFD_cellheight(Driver *drvthis);
#define SHUTTLE_VFD_CELLHEIGHT 8 #define SHUTTLE_VFD_CELLHEIGHT 8
// VFD USB properties // 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 #define SHUTTLE_VFD_PRODUCT_ID1 0x0003
// IR-receiver included in this model // IR-receiver included in this model
#define SHUTTLE_VFD_PRODUCT_ID2 0x0005 #define SHUTTLE_VFD_PRODUCT_ID2 0x0005