ubee: fix silly bug in lpen tty
authorAlan Cox <alan@linux.intel.com>
Sat, 5 May 2018 19:44:09 +0000 (20:44 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 5 May 2018 19:44:09 +0000 (20:44 +0100)
Not enough to make it work

Kernel/platform-ubee/devtty.c

index e76df75..6ab8d17 100644 (file)
@@ -249,9 +249,11 @@ void lpen_kbd_poll(void)
                return;
        }
        if (kbtest(63))
-               k = xlate_shift[k];
+               k = xlate_shift[lpen_kbd_last];
        else
-               k = xlate[k];
+               k = xlate[lpen_kbd_last];
+       if (k == 0)
+               return;
        if (capslock && (k >= 'a' && k <= 'z'))
                k -= 32;
        if (k >= 64 && k <= 127 && kbtest(57))