Catch the pressed key used to not start the default boot device.
Otherwise this key would appear in the menu user input.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11990
6f19259b-4bc3-4df7-8a09-
765794883524
UINTN Index;
CHAR16 BootVariableName[9];
EFI_STATUS Status;
+ EFI_INPUT_KEY Key;
Size = sizeof(UINT16);
Timeout = (UINT16)PcdGet16 (PcdPlatformBootTimeOut);
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");
}