From: michael Date: Wed, 14 Mar 2007 23:34:34 +0000 (+0000) Subject: impact requests ECP addresses, even when ECP is not available. Ignore X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/commitdiff_plain/889bee692ac3c04493f270c3d20649a4ee4e5ee6?ds=sidebyside impact requests ECP addresses, even when ECP is not available. Ignore requests with base address == 0x0000 --- diff --git a/usb-driver.c b/usb-driver.c index cd9807a..7523c13 100644 --- a/usb-driver.c +++ b/usb-driver.c @@ -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