Fix reference to chopper sim_mode variable.

This commit is contained in:
Ferdi Franceschini
2015-02-06 08:00:18 +11:00
parent 79fb7292bc
commit 4c3b3f71e5

View File

@ -4,14 +4,14 @@ namespace eval chopper {
set t0_chopper_id_simvar 1
}
if {$sim_mode == false} {
if {$::chopper::sim_mode == false} {
MakeAsyncProtocol std
std sendterminator "0x0D0x0A0"
std replyterminator "0x0D0x0A00x20"
MakeAsyncQueue chopsel std chopsel1-bilby 30000
}
::utility::macro::getset int t0_chopper_id {args} {
variable sim_mode [SplitReply [chopper_simulation]]
if {$sim_mode == false} {
if {$::chopper::sim_mode == false} {
if {$args == ""} {
chopsel send {get master chopper}
return "t0_chopper_id = [SplitReply [chopsel send {get master chopper}]]"