From f689f0abb0832c3d68e462e291a7a4d6dd43e216 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 17 Feb 2013 16:38:19 +0100 Subject: Fixed excessive debug buffer size --- apps/px4io/px4io.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/px4io/px4io.c b/apps/px4io/px4io.c index e50022a0c..96f49492f 100644 --- a/apps/px4io/px4io.c +++ b/apps/px4io/px4io.c @@ -77,8 +77,14 @@ struct hrt_call loop_overtime_call; static volatile uint32_t msg_counter; static volatile uint32_t last_msg_counter; static volatile uint8_t msg_next_out, msg_next_in; -#define NUM_MSG 6 -static char msg[NUM_MSG][60]; + +/* + * WARNING too large buffers here consume the memory required + * for mixer handling. Do not allocate more than 80 bytes for + * output. + */ +#define NUM_MSG 2 +static char msg[NUM_MSG][40]; /* add a debug message to be printed on the console @@ -193,7 +199,7 @@ int user_start(int argc, char *argv[]) show_debug_messages(); if (counter++ == 200) { counter = 0; - isr_debug(1, "tick debug=%u status=0x%x arming=0x%x features=0x%x resets=%u", + isr_debug(1, "tick dbg=%u stat=0x%x arm=0x%x feat=0x%x rst=%u", (unsigned)debug_level, (unsigned)r_status_flags, (unsigned)r_setup_arming, -- cgit v1.2.3