mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 14:47:44 +08:00
fix voted_sensors_update: remove DevMgr::releaseHandle(h);
the 'continue' continues with the inner loop, whereas the outer loop is responsible for opening the handle. Thus the inner loop needs to keep it open.
This commit is contained in:
@@ -254,7 +254,6 @@ void VotedSensorsUpdate::parameters_update()
|
||||
failed = failed || (OK != param_get(param_find(str), &device_id));
|
||||
|
||||
if (failed) {
|
||||
DevMgr::releaseHandle(h);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -337,7 +336,6 @@ void VotedSensorsUpdate::parameters_update()
|
||||
failed = failed || (OK != param_get(param_find(str), &device_id));
|
||||
|
||||
if (failed) {
|
||||
DevMgr::releaseHandle(h);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -421,7 +419,6 @@ void VotedSensorsUpdate::parameters_update()
|
||||
failed = failed || (OK != param_get(param_find(str), &device_id));
|
||||
|
||||
if (failed) {
|
||||
DevMgr::releaseHandle(h);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user