Skip to content

Commit 3d791c8

Browse files
committed
minor fixes
1 parent b6a1e3f commit 3d791c8

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

uc2rest/motor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def set_motor_enable(self, enable=None, enableauto=None):
512512
r = self._parent.post_json(path, payload)
513513
return r
514514

515-
def get_position(self, axis=None, timeout=.2):
515+
def get_position(self, axis=None, timeout=1):
516516
# pulls all current positions from the stepper controller
517517
path = "/motor_get"
518518
payload = {

uc2rest/mserial.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ def sendMessage(self, command, nResponses=1, timeout = 20):
362362
if time.time()-t0>timeReturnReceived and not (identifier in self.responses and len(self.responses[identifier]) > 0):
363363
self._logger.debug("It takes too long to get a response, we will resend the last command")
364364
try:
365-
self.DEBUG=1
366365
self.serialdevice.write(json.dumps(self.commands[identifier]).encode('utf-8'))
367366
time.sleep(0.1)
368367
except Exception as e:

0 commit comments

Comments
 (0)