diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-06-07 22:02:40 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-06-07 22:02:40 +0400 |
commit | 59b26eca48212f13a467724f9445169b78d6c70a (patch) | |
tree | bf5bd1ebad966f1490e29c3ded7aeec5b3536780 /src/modules/sdlog2/logbuffer.h | |
parent | d39999425d92997ca9db77305d5c87268c601d49 (diff) | |
download | px4-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.h | 4 |
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); |