nusb/kb: oops, fixup
This commit is contained in:
parent
811c3e8d78
commit
506cae05df
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue