impact requests ECP addresses, even when ECP is not available. Ignore
requests with base address == 0x0000
This commit is contained in:
parent
459c6ef789
commit
889bee692a
@ -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
|
||||||
|
Reference in New Issue
Block a user