only enforce frame size for nuttx

This commit is contained in:
Daniel Agar
2015-10-06 23:37:33 -04:00
parent a3d79c6e15
commit 4151522902
15 changed files with 22 additions and 31 deletions
+5 -1
View File
@@ -30,16 +30,20 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
if (${OS} STREQUAL "nuttx")
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1500)
endif()
px4_add_module(
MODULE modules__mavlink
MAIN mavlink
STACK 1200
COMPILE_FLAGS
${MODULE_CFLAGS}
-Wno-attributes
-Wno-packed
-DMAVLINK_COMM_NUM_BUFFERS=3
-Wno-packed
-Wframe-larger-than=2000
-Wno-tautological-constant-out-of-range-compare
-Os
SRCS
mavlink.c