Fix mixer issue with undefined return in callback and non value initialized variables.

This commit is contained in:
acfloria
2017-10-12 12:03:22 +02:00
committed by Lorenz Meier
parent fdc1a2fd39
commit 9d2da611f6
3 changed files with 4 additions and 1 deletions
+2
View File
@@ -384,6 +384,8 @@ mixer_callback(uintptr_t handle,
uint8_t control_index,
float &control)
{
control = 0.0f;
if (control_group >= PX4IO_CONTROL_GROUPS) {
return -1;
}