sdlog2 fixes

This commit is contained in:
Anton Babushkin 2013-06-07 21:32:58 +04:00
parent 03357f89fd
commit d39999425d
1 changed files with 3 additions and 1 deletions

View File

@ -484,7 +484,7 @@ void sdlog2_stop_log()
warnx("stop logging.");
mavlink_log_info(mavlink_fd, "[sdlog2] stop logging");
logging_enabled = true;
logging_enabled = false;
logwriter_should_exit = true;
/* wake up write thread one last time */
@ -828,6 +828,8 @@ int sdlog2_thread_main(int argc, char *argv[])
continue;
}
ifds = 1; // Begin from fds[1] again
pthread_mutex_lock(&logbuffer_mutex);
/* write time stamp message */