]> cvs.zerfleddert.de Git - usb-driver/commitdiff
impact requests ECP addresses, even when ECP is not available. Ignore
authormichael <michael>
Wed, 14 Mar 2007 23:34:34 +0000 (23:34 +0000)
committermichael <michael>
Wed, 14 Mar 2007 23:34:34 +0000 (23:34 +0000)
requests with base address == 0x0000

usb-driver.c

index cd9807a9017d5391df1e650abf50c1e80b0426b0..7523c1360eeba5c0f94212faa2d93b321f5968ad 100644 (file)
@@ -364,7 +364,8 @@ int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
                                        if (ioctl(parportfd, PPNEGOT, &pmode) == -1)
                                                return ret;
                                        
-                                       if (cr->Card.dwItems > 1) {
+                                       if (cr->Card.dwItems > 1 && cr->Card.Item[1].I.IO.dwBytes) {
+                                               DPRINTF("ECP mode requested\n");
                                                ecpbase = cr->Card.Item[1].I.IO.dwBytes;
                                                /* TODO: Implement ECP mode */
 #if 0
Impressum, Datenschutz