common code: Update call console only when it changes or after debug line

This commit is contained in:
Andreas Eversberg
2016-12-11 14:21:22 +01:00
parent 3400f555fe
commit d47853201c
3 changed files with 32 additions and 12 deletions

View File

@@ -93,6 +93,7 @@ void _printdebug(const char *file, const char __attribute__((unused)) *function,
display_limit_scroll(1);
printf("%s%s:%d %s: %s\033[0;39m", debug_cat[cat].color, file, line, debug_level[level], buffer);
display_limit_scroll(0);
print_console_text();
fflush(stdout);
}