From 889bee692ac3c04493f270c3d20649a4ee4e5ee6 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 14 Mar 2007 23:34:34 +0000 Subject: [PATCH] impact requests ECP addresses, even when ECP is not available. Ignore requests with base address == 0x0000 --- usb-driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5