shithub: riscv

Download patch

ref: 0753d7852df4aa2f79d891e2f805d47bc50bc521
parent: 634b40fe279408a43d4a30de003c7b541d49645c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Apr 24 18:02:47 EDT 2014

revert previous change, i was confused.

--- 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->addr&0xF)|dir, nil, 0)<0){
+	if(usbcmd(dev, r, Rclearfeature, Fhalt, (ep->id&0xF)|dir, nil, 0)<0){
 		werrstr("unstall: %s: %r", ep->dir);
 		return -1;
 	}