mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 06:21:35 +08:00
Fixed the number of control inputs for simple mixer. Contributed by Thomas Gubler
This commit is contained in:
@@ -168,6 +168,7 @@ mixer_load_simple(Mixer::ControlCallback control_cb, uintptr_t cb_handle, int fd
|
|||||||
|
|
||||||
/* let's assume we're going to read a simple mixer */
|
/* let's assume we're going to read a simple mixer */
|
||||||
mixinfo = (mixer_simple_s *)malloc(MIXER_SIMPLE_SIZE(inputs));
|
mixinfo = (mixer_simple_s *)malloc(MIXER_SIMPLE_SIZE(inputs));
|
||||||
|
mixinfo->control_count = inputs;
|
||||||
|
|
||||||
/* first, get the output scaler */
|
/* first, get the output scaler */
|
||||||
ret = mixer_getline(fd, buf, sizeof(buf));
|
ret = mixer_getline(fd, buf, sizeof(buf));
|
||||||
|
|||||||
Reference in New Issue
Block a user