Skip to content

Commit

Permalink
vtol_type.cpp: close pwm output device file descriptor
Browse files Browse the repository at this point in the history
Signed-off-by: Roman <[email protected]>
  • Loading branch information
RomanBapst authored and dagar committed Apr 12, 2018
1 parent 5cfb07e commit cfa4d57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/vtol_att_control/vtol_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit cfa4d57

Please sign in to comment.