Skip to content

Commit

Permalink
Fix motor coast to be the same as d_pwm in lms2012
Browse files Browse the repository at this point in the history
  • Loading branch information
rhempel authored and dlech committed Oct 20, 2014
1 parent d3aa76b commit 81f6ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ev3_output_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ int ev3_output_port_set_direction_gpios(struct ev3_output_port_data *data)
gpio_direction_output(data->gpio[GPIO_PIN2].gpio, 1);
break;
case DC_MOTOR_COMMAND_COAST:
gpio_direction_input(data->gpio[GPIO_PIN1].gpio);
gpio_direction_input(data->gpio[GPIO_PIN2].gpio);
gpio_direction_output(data->gpio[GPIO_PIN1].gpio, 0);
gpio_direction_output(data->gpio[GPIO_PIN2].gpio, 0);
break;
default:
return -EINVAL;
Expand Down

0 comments on commit 81f6ca0

Please sign in to comment.