forked from Archive/PX4-Autopilot
sdlog2 fixes
This commit is contained in:
parent
03357f89fd
commit
d39999425d
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue