diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-01-25 10:15:41 +1100 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-25 21:37:48 -0800 |
commit | 8972843b14a86aae3bbc4aa84e0c0a446eb7d605 (patch) | |
tree | cedbb80eb6f4bde991a7bdd684df749ab44a90b6 | |
parent | f8bea6d07b3ca32e697617588df2c106b8fb375c (diff) | |
download | px4-firmware-8972843b14a86aae3bbc4aa84e0c0a446eb7d605.tar.gz px4-firmware-8972843b14a86aae3bbc4aa84e0c0a446eb7d605.tar.bz2 px4-firmware-8972843b14a86aae3bbc4aa84e0c0a446eb7d605.zip |
px4io: fixed mixer load
-rw-r--r-- | apps/drivers/px4io/px4io.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/drivers/px4io/px4io.cpp b/apps/drivers/px4io/px4io.cpp index 51476ddd3..4c1b5ddf2 100644 --- a/apps/drivers/px4io/px4io.cpp +++ b/apps/drivers/px4io/px4io.cpp @@ -1030,9 +1030,11 @@ PX4IO::ioctl(file *filep, int cmd, unsigned long arg) ret = 0; /* load always resets */ break; - case MIXERIOCLOADBUF: - ret = mixer_send((const char *)arg, strnlen(_mix_buf, 1024)); + case MIXERIOCLOADBUF: { + const char *buf = (const char *)arg; + ret = mixer_send(buf, strnlen(buf, 1024)); break; + } case RC_INPUT_GET: { uint16_t status; |