Skip to content

Commit a81d423

Browse files
committed
fix bug
1 parent 3864a73 commit a81d423

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pymycobot/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ def write(self, command, method=None):
418418

419419
else:
420420
self._serial_port.reset_input_buffer()
421-
print(command)
422421
self.log.debug("_write: {}".format([hex(i) for i in command]))
423422
self._serial_port.write(command)
424423
self._serial_port.flush()

pymycobot/error.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def calibration_parameters(**kwargs):
247247
if value > 90 or value < -90:
248248
raise CobotXDataException("The angle range is -90° ~ 90°, but received {}".format(value))
249249
elif parameter == 'address':
250-
if value < 20 or value > 22:
251-
raise CobotXDataException("The angle address is 20 ~ 22, but received {}".format(value))
250+
if value < 32 or value > 34:
251+
raise CobotXDataException("The angle address is 32 ~ 34, but received {}".format(value))
252252
elif parameter == 'value':
253253
if value < 1 or value > 32000:
254254
raise CobotXDataException("The angle value is 1 ~ 32000, but received {}".format(value))

0 commit comments

Comments
 (0)