From e2a2679f6d0d58d06b5aef20418dad91f8aebb21 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Fri, 5 Nov 2021 20:48:09 +0800 Subject: [PATCH] main: remove the keystroke wait on startup --- main.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/main.c b/main.c index 6fe64e0..50b7208 100644 --- a/main.c +++ b/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); - io_WriteConsole(PROJECT_NAME "\r\n\r\nAWAITING FOR USER INPUT"); - - // 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); - + io_WriteConsole(" Welcome to " PROJECT_NAME " !\r\n\r\n"); graphics_Init(); io_PauseForKeystroke();