libpayload: Don't let USB/PC/serial keyboards overwrite each other
Change-Id: I75c0066cf737e0cecac056487215622e2b3d4467 Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/1981 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
67ce04ea9a
commit
0a90861ff2
|
@ -149,14 +149,14 @@ int PDC_get_key(void)
|
||||||
|
|
||||||
#ifdef CONFIG_PC_KEYBOARD
|
#ifdef CONFIG_PC_KEYBOARD
|
||||||
if ((curses_flags & F_ENABLE_CONSOLE) &&
|
if ((curses_flags & F_ENABLE_CONSOLE) &&
|
||||||
keyboard_havechar()) {
|
keyboard_havechar() && (c==0)) {
|
||||||
c = keyboard_getchar();
|
c = keyboard_getchar();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_CONSOLE
|
#ifdef CONFIG_SERIAL_CONSOLE
|
||||||
if ((curses_flags & F_ENABLE_SERIAL) &&
|
if ((curses_flags & F_ENABLE_SERIAL) &&
|
||||||
serial_havechar()) {
|
serial_havechar() && (c==0)) {
|
||||||
c = cook_serial(serial_getchar());
|
c = cook_serial(serial_getchar());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue