fusee: hide non-error logs behind splash screen (closes #328)

This commit is contained in:
Michael Scire
2019-01-26 00:50:38 -08:00
parent 3f6325c358
commit 901723621c
4 changed files with 12 additions and 8 deletions

View File

@@ -15,6 +15,7 @@
*/
#include "log.h"
#include "../console.h"
#include <stdio.h>
@@ -100,7 +101,10 @@ void print(ScreenLogLevel screen_log_level, const char * fmt, ...)
char buf[PRINT_MESSAGE_MAX_LENGTH] = {};
char message[PRINT_MESSAGE_MAX_LENGTH] = {};
/* TODO: make splash disappear if level > MANDATORY */
/* Make splash disappear if level is ERROR or WARNING */
if (screen_log_level < SCREEN_LOG_LEVEL_MANDATORY) {
console_resume();
}
/* make prefix free messages with log_level possible */
if(screen_log_level & SCREEN_LOG_LEVEL_NO_PREFIX) {