Skip to content

Commit

Permalink
fix order of reseting and initializing
Browse files Browse the repository at this point in the history
  • Loading branch information
cyborg-x1 committed Feb 13, 2016
1 parent 8e90af5 commit ea1dcb6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ class Ev3JointInterface : public ResourceManager<Ev3JointInterfaceHandle>
try
{
Ev3JointInterfaceHandle handle=getHandle(*res);
handle.getSettings().port.setMotorCommand(Ev3Strings::EV3MOTORCOMMANDS_RESET);
Ev3JointSettings::Ev3HwSettings ev3settings;
getJointSettings(*res, ev3settings);
handle.getSettings().load(ev3settings,true);
//Reset motor
handle.getSettings().port.setMotorCommand(Ev3Strings::EV3MOTORCOMMANDS_RESET);
handle.getSettings().load(ev3settings,true);
}
catch(const Ev3JointInterfaceException& e)
{
Expand Down

0 comments on commit ea1dcb6

Please sign in to comment.