diff --git a/uc2rest/motor.py b/uc2rest/motor.py index d99f876..c16be3e 100644 --- a/uc2rest/motor.py +++ b/uc2rest/motor.py @@ -512,7 +512,7 @@ def set_motor_enable(self, enable=None, enableauto=None): r = self._parent.post_json(path, payload) return r - def get_position(self, axis=None, timeout=.2): + def get_position(self, axis=None, timeout=1): # pulls all current positions from the stepper controller path = "/motor_get" payload = { diff --git a/uc2rest/mserial.py b/uc2rest/mserial.py index 1da8828..66d1bc4 100644 --- a/uc2rest/mserial.py +++ b/uc2rest/mserial.py @@ -362,7 +362,6 @@ def sendMessage(self, command, nResponses=1, timeout = 20): if time.time()-t0>timeReturnReceived and not (identifier in self.responses and len(self.responses[identifier]) > 0): self._logger.debug("It takes too long to get a response, we will resend the last command") try: - self.DEBUG=1 self.serialdevice.write(json.dumps(self.commands[identifier]).encode('utf-8')) time.sleep(0.1) except Exception as e: