nusb/kb: oops, fixup

This commit is contained in:
ftrvxmtrx 2013-05-18 01:03:13 +02:00
parent 811c3e8d78
commit 506cae05df

View file

@ -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