mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 18:52:46 +08:00
px4io: fixed mixer load
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user