Permalink
Browse files

Fixed mav and motor compatibility

  • Loading branch information...
1 parent 4811696 commit 80143aca2e231524c7ab16c616cfff87d7497c17 @bmcdorman bmcdorman committed Feb 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/motors_p.cpp
View
@@ -205,8 +205,8 @@ void Private::Motor::setPwmDirection(port_t port, const Motor::Direction &dir)
// this will undo their work.
Private::Kovan *kovan = Private::Kovan::instance();
- port = fixPort(port);
setControlMode(port, Private::Motor::Inactive);
+ port = fixPort(port);
const unsigned short offset = (3 - port) << 1;
unsigned short &dcs = kovan->currentState().t[MOTOR_DRIVE_CODE_T];

0 comments on commit 80143ac

Please sign in to comment.