aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/mixer.cpp
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-01-15 23:01:04 -0800
committerpx4dev <px4@purgatory.org>2013-01-15 23:01:04 -0800
commit7b367c3eb30dac38c016e78c1a64897ff10f377c (patch)
tree671329c9953e33dc3cdd736396874425548acc2c /apps/px4io/mixer.cpp
parent646b926ac98534004a0226dc491458728e61dabd (diff)
downloadpx4-firmware-7b367c3eb30dac38c016e78c1a64897ff10f377c.tar.gz
px4-firmware-7b367c3eb30dac38c016e78c1a64897ff10f377c.tar.bz2
px4-firmware-7b367c3eb30dac38c016e78c1a64897ff10f377c.zip
Beat the px4io driver into compilable shape. Just missing RC input configuration now.
Diffstat (limited to 'apps/px4io/mixer.cpp')
-rw-r--r--apps/px4io/mixer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/px4io/mixer.cpp b/apps/px4io/mixer.cpp
index 932aab930..1c7a05343 100644
--- a/apps/px4io/mixer.cpp
+++ b/apps/px4io/mixer.cpp
@@ -274,6 +274,12 @@ mixer_callback(uintptr_t handle,
return 0;
}
+/*
+ * XXX error handling here should be more aggressive; currently it is
+ * possible to get STATUS_FLAGS_MIXER_OK set even though the mixer has
+ * not loaded faithfully.
+ */
+
static char mixer_text[256]; /* large enough for one mixer */
static unsigned mixer_text_length = 0;