Introduce fatal_error

This commit is contained in:
TuxSH
2018-05-20 16:18:48 +02:00
parent add03d5774
commit f45bc83bc4
14 changed files with 104 additions and 137 deletions

View File

@@ -9,8 +9,7 @@ void display_splash_screen_bmp(const char *custom_splash_path) {
uint8_t *splash_screen = g_default_splash_screen;
if (custom_splash_path != NULL && custom_splash_path[0] != '\x00') {
if (!read_from_file(splash_screen, sizeof(g_default_splash_screen), custom_splash_path)) {
printf("Error: Failed to read custom splash screen from %s!\n", custom_splash_path);
generic_panic();
fatal_error("Failed to read custom splash screen from %s!\n", custom_splash_path);
}
}