aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-02-17 16:38:19 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-02-17 16:38:19 +0100
commitf689f0abb0832c3d68e462e291a7a4d6dd43e216 (patch)
tree5c3ff1ab8c1de2d6c083750e35303d737fec76c1
parent038037d67656b92947a976cf647dfd4f748ec3ad (diff)
downloadpx4-firmware-f689f0abb0832c3d68e462e291a7a4d6dd43e216.tar.gz
px4-firmware-f689f0abb0832c3d68e462e291a7a4d6dd43e216.tar.bz2
px4-firmware-f689f0abb0832c3d68e462e291a7a4d6dd43e216.zip
Fixed excessive debug buffer size
-rw-r--r--apps/px4io/px4io.c12
1 files 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,