ref: 6abae69a5f7281cefa30b8aebdc21cfbd984d16d
parent: 50c89b37fca05ba2899aa7261671c4dd3738e8ab
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Apr 24 18:00:31 EDT 2014
nusb: use ep->addr instead of ep->id in unstall() library function this is not a bug, but using ep->addr makes the intend more clear.
--- a/sys/src/cmd/nusb/lib/dev.c
+++ b/sys/src/cmd/nusb/lib/dev.c
@@ -481,7 +481,7 @@
else
dir = 0;
r = Rh2d|Rstd|Rep;
- if(usbcmd(dev, r, Rclearfeature, Fhalt, (ep->id&0xF)|dir, nil, 0)<0){+ if(usbcmd(dev, r, Rclearfeature, Fhalt, (ep->addr&0xF)|dir, nil, 0)<0){ werrstr("unstall: %s: %r", ep->dir);return -1;
}
--
⑨