Fix reference to chopper sim_mode variable.
This commit is contained in:
@ -4,14 +4,14 @@ namespace eval chopper {
|
|||||||
set t0_chopper_id_simvar 1
|
set t0_chopper_id_simvar 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if {$sim_mode == false} {
|
if {$::chopper::sim_mode == false} {
|
||||||
MakeAsyncProtocol std
|
MakeAsyncProtocol std
|
||||||
|
std sendterminator "0x0D0x0A0"
|
||||||
|
std replyterminator "0x0D0x0A00x20"
|
||||||
MakeAsyncQueue chopsel std chopsel1-bilby 30000
|
MakeAsyncQueue chopsel std chopsel1-bilby 30000
|
||||||
}
|
}
|
||||||
::utility::macro::getset int t0_chopper_id {args} {
|
::utility::macro::getset int t0_chopper_id {args} {
|
||||||
variable sim_mode [SplitReply [chopper_simulation]]
|
if {$::chopper::sim_mode == false} {
|
||||||
|
|
||||||
if {$sim_mode == false} {
|
|
||||||
if {$args == ""} {
|
if {$args == ""} {
|
||||||
chopsel send {get master chopper}
|
chopsel send {get master chopper}
|
||||||
return "t0_chopper_id = [SplitReply [chopsel send {get master chopper}]]"
|
return "t0_chopper_id = [SplitReply [chopsel send {get master chopper}]]"
|
||||||
|
Reference in New Issue
Block a user