From 3ed95df1a5da842e750d4719cb04db609791b812 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Tue, 13 Feb 2007 16:21:49 +1100 Subject: [PATCH] Splitreply now trims spaces. r1478 | ffr | 2007-02-13 16:21:49 +1100 (Tue, 13 Feb 2007) | 2 lines --- site_ansto/instrument/utility.tcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site_ansto/instrument/utility.tcl b/site_ansto/instrument/utility.tcl index c7dd0e09..efb2a03b 100644 --- a/site_ansto/instrument/utility.tcl +++ b/site_ansto/instrument/utility.tcl @@ -1,7 +1,7 @@ # Some useful functions for SICS configuration. -# $Revision: 1.6 $ -# $Date: 2007-02-12 01:01:02 $ +# $Revision: 1.7 $ +# $Date: 2007-02-13 05:21:49 $ # Author: Ferdi Franceschini (ffr@ansto.gov.au) # Last revision by $Author: ffr $ @@ -37,7 +37,7 @@ proc params {args} { # Parse motor readings for virtual motor scripts. proc SplitReply { text } { set l [split $text =] - return [lindex $l 1] + return [string trim [lindex $l 1]] } # Sets motor position reading to pos by adjusting the softzero