Skip to content

Commit f4eef40

Browse files
committed
fix bug
1 parent 17648dd commit f4eef40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymycobot/generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ def set_HTS_gripper_torque(self, torque):
11401140
1: Set successful
11411141
"""
11421142
self.calibration_parameters(class_name = self.__class__.__name__, torque=torque)
1143-
return self._mesg(ProtocolCode.SetHTSGripperTorque, torque, has_reply = True)
1143+
return self._mesg(ProtocolCode.SetHTSGripperTorque, [torque], has_reply = True)
11441144

11451145
def get_HTS_gripper_torque(self):
11461146
"""Get gripper torque
@@ -1174,7 +1174,7 @@ def set_gripper_protect_current(self, current):
11741174
"""
11751175
self.calibration_parameters(class_name = self.__class__.__name__, current=current)
11761176

1177-
return self._mesg(ProtocolCode.InitGripper, current)
1177+
return self._mesg(ProtocolCode.SetGripperProtectCurrent, current)
11781178

11791179
def set_four_pieces_zero(self):
11801180
"""Set the zero position of the four-piece motor

0 commit comments

Comments
 (0)