diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-30 16:00:14 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-09-30 16:00:14 +0200 |
commit | 2766285d56cab6f9916efde535b979bc5475f6a5 (patch) | |
tree | 458c8e6adf153a8be530459719ee594e6f5e3cbc /src/modules/mavlink | |
parent | 5452732610bd1d5b795558fa8f9d9ffb2639dc0b (diff) | |
download | px4-firmware-2766285d56cab6f9916efde535b979bc5475f6a5.tar.gz px4-firmware-2766285d56cab6f9916efde535b979bc5475f6a5.tar.bz2 px4-firmware-2766285d56cab6f9916efde535b979bc5475f6a5.zip |
mavlink: change message buffer size to 4
Diffstat (limited to 'src/modules/mavlink')
-rw-r--r-- | src/modules/mavlink/mavlink_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mavlink/mavlink_main.cpp b/src/modules/mavlink/mavlink_main.cpp index b9f486c95..980362ce5 100644 --- a/src/modules/mavlink/mavlink_main.cpp +++ b/src/modules/mavlink/mavlink_main.cpp @@ -1328,7 +1328,7 @@ Mavlink::task_main(int argc, char *argv[]) * make space for two messages plus off-by-one space as we use the empty element * marker ring buffer approach. */ - if (OK != message_buffer_init(10 * sizeof(mavlink_message_t) + 1)) { + if (OK != message_buffer_init(4 * sizeof(mavlink_message_t) + 1)) { errx(1, "can't allocate message buffer, exiting"); } @@ -1382,7 +1382,7 @@ Mavlink::task_main(int argc, char *argv[]) _mission_manager->set_verbose(_verbose); LL_APPEND(_streams, _mission_manager); - + switch (_mode) { case MAVLINK_MODE_NORMAL: |