aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-02-17 16:38:42 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-02-17 16:38:42 +0100
commit5085a282407bc154bf94254d8e875c102af70b3f (patch)
tree930d8d5d44b2c916f60b17ccd1ad1d304bfab51c /apps
parentd677512981e79cbbe233de463e91b5e374982ceb (diff)
parentf689f0abb0832c3d68e462e291a7a4d6dd43e216 (diff)
downloadpx4-firmware-5085a282407bc154bf94254d8e875c102af70b3f.tar.gz
px4-firmware-5085a282407bc154bf94254d8e875c102af70b3f.tar.bz2
px4-firmware-5085a282407bc154bf94254d8e875c102af70b3f.zip
Merge branch 'px4io-i2c' into px4io-i2c-nuttx
Diffstat (limited to 'apps')
-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 2683ff1f6..f1231b0cf 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,