diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-06-07 21:32:58 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-06-07 21:32:58 +0400 |
commit | d39999425d92997ca9db77305d5c87268c601d49 (patch) | |
tree | 45af110afe4d1e769b5976fac30fbacd7dc043c5 /src/modules/sdlog2 | |
parent | 03357f89fddb90ddba8e1dce6f82849b7598817c (diff) | |
download | px4-firmware-d39999425d92997ca9db77305d5c87268c601d49.tar.gz px4-firmware-d39999425d92997ca9db77305d5c87268c601d49.tar.bz2 px4-firmware-d39999425d92997ca9db77305d5c87268c601d49.zip |
sdlog2 fixes
Diffstat (limited to 'src/modules/sdlog2')
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 32bd422bc..6fc430fc9 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -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 */ |