px4io: fixed mixer load

This commit is contained in:
Andrew Tridgell 2013-01-25 10:15:41 +11:00 committed by px4dev
parent f8bea6d07b
commit 8972843b14
1 changed files with 4 additions and 2 deletions

View File

@ -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;