mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 06:13:33 +08:00
vtol_type.cpp: close pwm output device file descriptor
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -302,6 +302,8 @@ bool VtolType::apply_pwm_limits(struct pwm_output_values &pwm_values, pwm_limit_
|
||||
ret = px4_ioctl(fd, PWM_SERVO_SET_MAX_PWM, (long unsigned int)&pwm_values);
|
||||
}
|
||||
|
||||
px4_close(fd);
|
||||
|
||||
|
||||
if (ret != OK) {
|
||||
PX4_ERR("failed setting max values");
|
||||
|
||||
Reference in New Issue
Block a user