ref: 634b40fe279408a43d4a30de003c7b541d49645c
parent: 70d7f4c32ad5b334840bd986315b58f04e9cd102
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;
}