From 634b40fe279408a43d4a30de003c7b541d49645c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 24 Apr 2014 22:00:31 +0200 Subject: 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. --- sys/src/cmd/nusb/lib/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src') diff --git a/sys/src/cmd/nusb/lib/dev.c b/sys/src/cmd/nusb/lib/dev.c index 60d327e87..2b32ecd34 100644 --- a/sys/src/cmd/nusb/lib/dev.c +++ b/sys/src/cmd/nusb/lib/dev.c @@ -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; } -- cgit v1.2.3