forked from Archive/PX4-Autopilot
Fixed the number of control inputs for simple mixer. Contributed by Thomas Gubler
This commit is contained in:
parent
b43f692d3a
commit
ee5abb0745
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue