Fixed excessive debug buffer size

This commit is contained in:
Lorenz Meier 2013-02-17 16:38:19 +01:00
parent 038037d676
commit f689f0abb0
1 changed files with 9 additions and 3 deletions

View File

@ -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,