Skip to content
Snippets Groups Projects
Commit 85268060 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Merge branch 'revert-71895cb7' into 'master'

Revert "Updated the internal operation mode attributes when configured."

See merge request !4
parents 71895cb7 e410e8d6
No related branches found
No related tags found
1 merge request!4Revert "Updated the internal operation mode attributes when configured."
......@@ -446,19 +446,9 @@ void CDynamixelMotor::set_drive_mode(bool time_based,bool reverse)
unsigned int value=0;
if(time_based)
{
this->time_based_mode=true;
value|=0x04;
}
else
this->time_based_mode=false;
if(reverse)
{
this->reverse_mode=true;
value|=0x01;
}
else
this->reverse_mode=false;
this->write_register(this->registers[drive_mode],value);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment