mirror of https://github.com/acidanthera/audk.git
Fix ECC issue.
Signed-off-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Dong Eric <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13855 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
64470c17df
commit
616ac6f569
|
@ -1519,7 +1519,7 @@ InitKeyboard (
|
|||
// Perform a read to cleanup the Status Register's
|
||||
// output buffer full bits within MAX TRY times
|
||||
//
|
||||
if ((KeyReadStatusRegister (ConsoleIn) & KEYBOARD_STATUS_REGISTER_HAS_OUTPUT_DATA)) {
|
||||
if ((KeyReadStatusRegister (ConsoleIn) & KEYBOARD_STATUS_REGISTER_HAS_OUTPUT_DATA) != 0) {
|
||||
while (!EFI_ERROR (Status) && TryTime < KEYBOARD_MAX_TRY) {
|
||||
Status = KeyboardRead (ConsoleIn, &CommandByte);
|
||||
TryTime ++;
|
||||
|
|
Loading…
Reference in New Issue