|
|
|
@ -1,8 +1,6 @@
@@ -1,8 +1,6 @@
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
* |
|
|
|
|
* Copyright (c) 2012-2014 PX4 Development Team. All rights reserved. |
|
|
|
|
* Author: Lorenz Meier <lm@inf.ethz.ch> |
|
|
|
|
* Anton Babushkin <anton.babushkin@me.com> |
|
|
|
|
* |
|
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
|
|
* modification, are permitted provided that the following conditions |
|
|
|
@ -95,6 +93,7 @@
@@ -95,6 +93,7 @@
|
|
|
|
|
|
|
|
|
|
#define LOGBUFFER_WRITE_AND_COUNT(_msg) if (logbuffer_write(&lb, &log_msg, LOG_PACKET_SIZE(_msg))) { \ |
|
|
|
|
log_msgs_written++; \
|
|
|
|
|
|
|
|
|
|
} else { \
|
|
|
|
|
log_msgs_skipped++; \
|
|
|
|
|
} |
|
|
|
@ -450,6 +449,7 @@ static void *logwriter_thread(void *arg)
@@ -450,6 +449,7 @@ static void *logwriter_thread(void *arg)
|
|
|
|
|
n = available; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
lseek(log_fd, 0, SEEK_CUR); |
|
|
|
|
n = write(log_fd, read_ptr, n); |
|
|
|
|
|
|
|
|
|
should_wait = (n == available) && !is_part; |
|
|
|
|