Skip to content

Commit

Permalink
Update LinoRoboArm.h
Browse files Browse the repository at this point in the history
  • Loading branch information
LoBrol committed Nov 20, 2022
1 parent b2ae204 commit 0b19b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LinoRoboArm.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ uint8_t LinoRoboArm::GetJoints() {
*/
void LinoRoboArm::SetServo(uint8_t ServoID, uint8_t val) {
servos[ServoID].SetServo(val);
moveServo(ServoID, val);
moveServo(ServoID, servos[ServoID].GetServo());
}


Expand Down Expand Up @@ -158,4 +158,4 @@ String LinoRoboArm::PrintPositions() {
aux += servos[i].GetServo() + ",";
aux += servos[5].GetServo();
return aux;
}
}

0 comments on commit 0b19b60

Please sign in to comment.