- KeyStatus = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
- if (!EFI_ERROR (KeyStatus) && (Key.ScanCode == SCAN_ESC)) {\r
- if (!RequireSoftECCInit) {\r
- if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {\r
- TmpStr = GetStringById (STRING_TOKEN (STR_PERFORM_MEM_TEST));\r
- if (TmpStr != NULL) {\r
- PlatformBdsShowProgress (\r
- Foreground,\r
- Background,\r
- TmpStr,\r
- Color,\r
- 100,\r
- (UINTN) PreviousValue\r
- );\r
- FreePool (TmpStr);\r
+ if (!PcdGetBool (PcdConInConnectOnDemand)) {\r
+ KeyStatus = gST->ConIn->ReadKeyStroke (gST->ConIn, &Key);\r
+ if (!EFI_ERROR (KeyStatus) && (Key.ScanCode == SCAN_ESC)) {\r
+ if (!RequireSoftECCInit) {\r
+ if (!FeaturePcdGet(PcdBootlogoOnlyEnable)) {\r
+ TmpStr = GetStringById (STRING_TOKEN (STR_PERFORM_MEM_TEST));\r
+ if (TmpStr != NULL) {\r
+ PlatformBdsShowProgress (\r
+ Foreground,\r
+ Background,\r
+ TmpStr,\r
+ Color,\r
+ 100,\r
+ (UINTN) PreviousValue\r
+ );\r
+ FreePool (TmpStr);\r
+ }\r
+\r
+ PrintXY (10, 10, NULL, NULL, L"100");\r