From eea6d85ae89ae721b24df59da0d18fbb67ee46cb Mon Sep 17 00:00:00 2001 From: gabuzi <15203081+gabuzi@users.noreply.github.com> Date: Mon, 22 Jan 2018 18:19:41 +0100 Subject: [PATCH] change reply from status to value for ref search The RFS command is designed to be used for 1) initiating reference searches, 2) stopping in progress reference searches, and 3) querying if a reference search is currently in progress. In order for 3) to work, the value of the reply needs to be returned to the caller. --- TMCL/motor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMCL/motor.py b/TMCL/motor.py index 368d239..54c99bc 100644 --- a/TMCL/motor.py +++ b/TMCL/motor.py @@ -84,7 +84,7 @@ def run_command( self, cmdIndex ): def reference_search( self, rfs_type ): reply = self.send(Command.RFS, rfs_type, self.motor_id, 99) - return reply.status + return reply.value class AxisParameterInterface(object):