Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
beniroquai committed Jul 21, 2024
1 parent b6a1e3f commit 3d791c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion uc2rest/motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 0 additions & 1 deletion uc2rest/mserial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3d791c8

Please sign in to comment.