1
0

impact requests ECP addresses, even when ECP is not available. Ignore

requests with base address == 0x0000
This commit is contained in:
michael 2007-03-14 23:34:34 +00:00
parent 459c6ef789
commit 889bee692a

View File

@ -364,7 +364,8 @@ int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
if (ioctl(parportfd, PPNEGOT, &pmode) == -1) if (ioctl(parportfd, PPNEGOT, &pmode) == -1)
return ret; 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; ecpbase = cr->Card.Item[1].I.IO.dwBytes;
/* TODO: Implement ECP mode */ /* TODO: Implement ECP mode */
#if 0 #if 0