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:
parent
70d7f4c32a
commit
634b40fe27
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue