Fix return value for simulated t0_chopper_id.
Also save value as an array, this is useful when testing the code.
This commit is contained in:
@ -26,7 +26,7 @@ if {$sim_mode == false} {
|
||||
if {$::chopper::t0_chopper_id_simvar < 1 || $::chopper::t0_chopper_id_simvar > 4} {
|
||||
return -code error "Your simulated chopper returned an error"
|
||||
} else {
|
||||
return t0_chopper_id = $::chopper::t0_chopper_id_simvar
|
||||
return "t0_chopper_id = $::chopper::t0_chopper_id_simvar"
|
||||
}
|
||||
} else {
|
||||
set ::chopper::t0_chopper_id_simvar $args
|
||||
@ -35,4 +35,4 @@ if {$sim_mode == false} {
|
||||
}
|
||||
sicslist setatt t0_chopper_id klass NXdisk_chopper
|
||||
sicslist setatt t0_chopper_id long_name t0_chopper_id
|
||||
sicslist setatt t0_chopper_id mutable false
|
||||
sicslist setatt t0_chopper_id mutable true
|
||||
|
Reference in New Issue
Block a user