mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 04:00:36 +08:00
Fix mixer issue with undefined return in callback and non value initialized variables.
This commit is contained in:
@@ -299,7 +299,7 @@ SimpleMixer::mix(float *outputs, unsigned space)
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < _pinfo->control_count; i++) {
|
||||
float input;
|
||||
float input = 0.0f;
|
||||
|
||||
_control_cb(_cb_handle,
|
||||
_pinfo->controls[i].control_group,
|
||||
|
||||
Reference in New Issue
Block a user