fix: 'data plot' - plot window now hides when keypress Q

This commit is contained in:
iceman1001 2018-04-06 23:52:55 +02:00
commit e8be06dd31
3 changed files with 11 additions and 6 deletions

View file

@ -80,9 +80,9 @@ void PrintAndLogEx(logLevel_t level, char *fmt, ...) {
vsnprintf(buffer, sizeof(buffer), fmt, args);
va_end(args);
if(strchr(buffer, '\n')) {
if (strchr(buffer, '\n')) {
token = strtok(buffer,"\n");
token = strtok(buffer, "\n");
while (token != NULL) {
size = strlen(buffer2);
@ -159,9 +159,9 @@ void PrintAndLog(char *fmt, ...) {
}
va_end(argptr2);
if (g_flushAfterWrite == 1) {
if (g_flushAfterWrite == 1)
fflush(NULL);
}
//release lock
pthread_mutex_unlock(&print_lock);
}