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.
This commit is contained in:
cinap_lenrek 2014-04-24 22:00:31 +02:00
parent 70d7f4c32a
commit 634b40fe27

View file

@ -481,7 +481,7 @@ unstall(Dev *dev, Dev *ep, int dir)
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;
}