fix bug in cummunication with seaman
do not use quotes around args in "seaman / arg1 arg2"
This commit is contained in:
@ -116,7 +116,7 @@ proc disconnect_from {caller args} {
|
||||
}
|
||||
if {[llength $confirm] != 0} {
|
||||
if {$caller ne "0"} {
|
||||
seaman / "book_confirm $caller $confirm"
|
||||
seaman / book_confirm $caller $confirm
|
||||
}
|
||||
}
|
||||
if {$answer eq ""} {
|
||||
@ -133,7 +133,8 @@ proc save_samenv {{dev ""}} {
|
||||
if {$dev eq ""} {
|
||||
set dev [samenv name]
|
||||
}
|
||||
seaman / "samenv_list makeitem [result instrument] $dev"
|
||||
seaman / samenv_list makeitem [result instrument] $dev
|
||||
seaman / rack_list makeitem [rack] [result instrument]
|
||||
}
|
||||
|
||||
publishLazy save_samenv
|
||||
@ -169,7 +170,7 @@ proc request_items {device} {
|
||||
lappend items $hostport
|
||||
}
|
||||
}
|
||||
seaman / "book_request [result instrument] [info hostname]:$serverport $device $items"
|
||||
seaman / book_request [result instrument] [info hostname]:$serverport $device $items
|
||||
set ts_status "Checking serial connections ..."
|
||||
}
|
||||
|
||||
@ -199,7 +200,7 @@ proc reconnect_object {obj {value 0}} {
|
||||
}
|
||||
}
|
||||
if {[is_mobile_port $hostport]} {
|
||||
seaman / "book_request [result instrument] [info hostname]:$serverport PARTIAL $hostport"
|
||||
seaman / book_request [result instrument] [info hostname]:$serverport PARTIAL $hostport
|
||||
set ts_status "Checking serial connection ..."
|
||||
}
|
||||
}
|
||||
@ -249,14 +250,14 @@ proc remote_disconnect {args} {
|
||||
foreach {item instr} $args {
|
||||
set disconnect_time($item) [DoubleTime]
|
||||
}
|
||||
seaman / "book_this [result instrument] $args"
|
||||
seaman / book_this [result instrument] $args
|
||||
}
|
||||
|
||||
proc forced_disconnect {item {value 0}} {
|
||||
global disconnect_time
|
||||
if {$value} {
|
||||
catch {unset disconnect_time($item)}
|
||||
seaman / "book_confirm [result instrument] $item"
|
||||
seaman / book_confirm [result instrument] $item
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
@ -264,7 +265,7 @@ proc forced_disconnect {item {value 0}} {
|
||||
|
||||
proc remote_device_none {instrument {value 0}} {
|
||||
global disconnect_time
|
||||
seaman / "device_none_on $instrument"
|
||||
seaman / device_none_on $instrument
|
||||
set disconnect_time(0) [DoubleTime]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user