diff options
author | Darryl Taylor <darryl.c.taylor@gmail.com> | 2014-01-29 17:09:05 +0800 |
---|---|---|
committer | Darryl Taylor <darryl.c.taylor@gmail.com> | 2014-01-29 17:09:05 +0800 |
commit | 58a1f19d79da8a621454f11055534610921accd6 (patch) | |
tree | 9967723464f716cfe2c61d801249ac39c8a38113 | |
parent | 338b753a3c56813c5820e54209b4949e04a12ad9 (diff) | |
download | px4-firmware-58a1f19d79da8a621454f11055534610921accd6.tar.gz px4-firmware-58a1f19d79da8a621454f11055534610921accd6.tar.bz2 px4-firmware-58a1f19d79da8a621454f11055534610921accd6.zip |
Stack size reduced to 1816. Max stack reported by top was 1448 under HIL.
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 7b6fad658..9fc7b748a 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -871,7 +871,7 @@ receive_start(int uart) param.sched_priority = SCHED_PRIORITY_MAX - 40; (void)pthread_attr_setschedparam(&receiveloop_attr, ¶m); - pthread_attr_setstacksize(&receiveloop_attr, 3000); + pthread_attr_setstacksize(&receiveloop_attr, 1816); pthread_t thread; pthread_create(&thread, &receiveloop_attr, receive_thread, &uart); |