diff options
Diffstat (limited to 'ArmPlatformPkg/Bds/Bds.c')
-rw-r--r-- | ArmPlatformPkg/Bds/Bds.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ArmPlatformPkg/Bds/Bds.c b/ArmPlatformPkg/Bds/Bds.c index a10c90a..11116ed 100644 --- a/ArmPlatformPkg/Bds/Bds.c +++ b/ArmPlatformPkg/Bds/Bds.c @@ -269,6 +269,7 @@ StartDefaultBootOnTimeout ( UINTN Index; CHAR16 BootVariableName[9]; EFI_STATUS Status; + EFI_INPUT_KEY Key; Size = sizeof(UINT16); Timeout = (UINT16)PcdGet16 (PcdPlatformBootTimeOut); @@ -293,6 +294,10 @@ StartDefaultBootOnTimeout ( Timeout--; } } + // Discard key in the buffer + do { + Status = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key); + } while(!EFI_ERROR(Status)); gBS->CloseEvent (WaitList[0]); Print(L"\n\r"); } |