From 8972843b14a86aae3bbc4aa84e0c0a446eb7d605 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 Jan 2013 10:15:41 +1100 Subject: px4io: fixed mixer load --- apps/drivers/px4io/px4io.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/drivers/px4io/px4io.cpp') 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; -- cgit v1.2.3