projects
/
usb-driver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
459c6ef
)
impact requests ECP addresses, even when ECP is not available. Ignore
author
michael
<michael>
Wed, 14 Mar 2007 23:34:34 +0000
(23:34 +0000)
committer
michael
<michael>
Wed, 14 Mar 2007 23:34:34 +0000
(23:34 +0000)
requests with base address == 0x0000
usb-driver.c
patch
|
blob
|
blame
|
history
diff --git
a/usb-driver.c
b/usb-driver.c
index cd9807a9017d5391df1e650abf50c1e80b0426b0..7523c1360eeba5c0f94212faa2d93b321f5968ad 100644
(file)
--- 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
Impressum
,
Datenschutz