Explorar o código

Suppress all output with splashscreen configured only if "splashimage"
is set

dzu %!s(int64=21) %!d(string=hai) anos
pai
achega
87970ebeb5
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      common/console.c

+ 4 - 2
common/console.c

@@ -488,8 +488,10 @@ int console_init_r (void)
 	int i, items = ListNumItems (devlist);
 
 #ifdef CONFIG_SPLASH_SCREEN
-	/* suppress all output if splash screen is enabled */
-	outputdev = search_device (DEV_FLAGS_OUTPUT, "nulldev");
+	/* suppress all output if splash screen is enabled and we have
+           a bmp to display                                            */
+	if (getenv("splashimage") != NULL)
+		outputdev = search_device (DEV_FLAGS_OUTPUT, "nulldev");
 #endif
 
 	/* Scan devices looking for input and output devices */