Fixes SICS-144

target value was wrong when checking scan variable.

r2623 | ffr | 2008-06-11 16:26:36 +1000 (Wed, 11 Jun 2008) | 3 lines
This commit is contained in:
Ferdi Franceschini
2008-06-11 16:26:36 +10:00
committed by Douglas Clowes
parent 3d3ecdd83e
commit 528d125efe

View File

@@ -56,7 +56,7 @@ proc ::scan::check_scanvar {sobj uobj} {
} elseif {[SplitReply [$scan_variable thread0]] == -1} {
return -code error "ERROR: Can't scan ${scan_variable}. Thread zero has stopped running on the motion controller"
}
set target [expr $scan_start + $NP * $scan_increment]
set target [expr $scan_start + ($NP-1) * $scan_increment]
if [catch {
::scan::check_limit $scan_variable hardlowerlim $target
::scan::check_limit $scan_variable hardupperlim $target