add the ability to print without adding a prefix for multi part/line prints

This commit is contained in:
Resaec
2018-09-25 23:43:52 +02:00
parent 1eb3d7969e
commit d2355cdc9b
4 changed files with 40 additions and 20 deletions

View File

@@ -97,7 +97,7 @@ __attribute__((noreturn)) void fatal_error(const char *fmt, ...) {
va_start(args, fmt);
vprint(SCREEN_LOG_LEVEL_ERROR, fmt, args);
va_end(args);
print(SCREEN_LOG_LEVEL_ERROR, "\n Press POWER to reboot.\n");
print(SCREEN_LOG_LEVEL_ERROR | SCREEN_LOG_LEVEL_NO_PREFIX, "\n Press POWER to reboot.\n");
wait_for_button_and_reboot();
}