aboutsummaryrefslogtreecommitdiff
path: root/src/modules/sdlog2/logbuffer.h
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2013-06-07 22:02:40 +0400
committerAnton Babushkin <anton.babushkin@me.com>2013-06-07 22:02:40 +0400
commit59b26eca48212f13a467724f9445169b78d6c70a (patch)
treebf5bd1ebad966f1490e29c3ded7aeec5b3536780 /src/modules/sdlog2/logbuffer.h
parentd39999425d92997ca9db77305d5c87268c601d49 (diff)
downloadpx4-firmware-59b26eca48212f13a467724f9445169b78d6c70a.tar.gz
px4-firmware-59b26eca48212f13a467724f9445169b78d6c70a.tar.bz2
px4-firmware-59b26eca48212f13a467724f9445169b78d6c70a.zip
sdlog2 -b option (log buffer size) added, minor cleanup
Diffstat (limited to 'src/modules/sdlog2/logbuffer.h')
-rw-r--r--src/modules/sdlog2/logbuffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sdlog2/logbuffer.h b/src/modules/sdlog2/logbuffer.h
index e9635e5e7..31521f722 100644
--- a/src/modules/sdlog2/logbuffer.h
+++ b/src/modules/sdlog2/logbuffer.h
@@ -46,14 +46,14 @@
#include <stdbool.h>
struct logbuffer_s {
- // all pointers are in bytes
+ // pointers and size are in bytes
int write_ptr;
int read_ptr;
int size;
char *data;
};
-void logbuffer_init(struct logbuffer_s *lb, int size);
+int logbuffer_init(struct logbuffer_s *lb, int size);
int logbuffer_count(struct logbuffer_s *lb);