main: remove the keystroke wait on startup
This commit is contained in:
parent
d3c91c0048
commit
e2a2679f6d
11
main.c
11
main.c
@ -25,16 +25,7 @@ FASTCALL_ABI EFI_STATUS efiMain(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *System
|
|||||||
|
|
||||||
pic_serial_Init(&pic_serial_COM1, 115200, 0);
|
pic_serial_Init(&pic_serial_COM1, 115200, 0);
|
||||||
|
|
||||||
io_WriteConsole(PROJECT_NAME "\r\n\r\nAWAITING FOR USER INPUT");
|
io_WriteConsole(" Welcome to " PROJECT_NAME " !\r\n\r\n");
|
||||||
|
|
||||||
// wait for a user keypress
|
|
||||||
UINTN index;
|
|
||||||
SystemTable->BootServices->WaitForEvent(1, &SystemTable->ConIn->WaitForKey, &index);
|
|
||||||
EFI_INPUT_KEY key;
|
|
||||||
SystemTable->ConIn->ReadKeyStroke(SystemTable->ConIn, &key);
|
|
||||||
io_WriteConsole("...Key Pressed\r\n");
|
|
||||||
io_Printf("Pressed key: %d, %d\r\n", (int)key.ScanCode, (int)key.UnicodeChar);
|
|
||||||
|
|
||||||
|
|
||||||
graphics_Init();
|
graphics_Init();
|
||||||
io_PauseForKeystroke();
|
io_PauseForKeystroke();
|
||||||
|
Loading…
Reference in New Issue
Block a user