shithub: riscv

Download patch

ref: 5bf221bab7e76c99014adcaa5749bfef5e09014e
parent: d1b98305de5aeadd3ed01d48d27fd53b33e298b3
author: aiju <[email protected]>
date: Sun Jul 31 11:02:01 EDT 2011

kb: don't do setleds on mice

--- a/sys/src/cmd/nusb/kb/kb.c
+++ b/sys/src/cmd/nusb/kb/kb.c
@@ -543,7 +543,7 @@
 		kd->ep = nil;
 		return;
 	}
-	if(setleds(kd, ep->id, 0) < 0){
+	if(f == kbdwork && setleds(kd, ep->id, 0) < 0){
 		fprint(2, "kb: %s: setleds: %r\n", d->dir);
 		return;
 	}