From 506cae05df31f3e54992c99ab25ba53c72af49ad Mon Sep 17 00:00:00 2001 From: ftrvxmtrx Date: Sat, 18 May 2013 01:03:13 +0200 Subject: [PATCH] nusb/kb: oops, fixup --- sys/src/cmd/nusb/kb/kb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/src/cmd/nusb/kb/kb.c b/sys/src/cmd/nusb/kb/kb.c index 2f20645b8..987b3942b 100644 --- a/sys/src/cmd/nusb/kb/kb.c +++ b/sys/src/cmd/nusb/kb/kb.c @@ -522,11 +522,9 @@ putscan(int fd, uchar sc, uchar up) { uchar s[2] = {SCesc1, 0}; - s[1] = sc&Keymask; - if(s[1] == 0) + if(sc == 0) return; - - s[1] |= up; + s[1] = up | sc&Keymask; if(isext(sc)) write(fd, s, 2); else