File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -858,7 +858,7 @@ proc watchHAL {which} {
858858 # ptype (and getp) fail when the item clicked is not a leaf
859859 # e.g., clicking "Pins / axis / 0"
860860 if {[catch {hal ptype $varname } type]} {
861- setStatusbar $type
861+ setStatusbar " Watch: $type "
862862 return $type
863863 }
864864 }
@@ -1113,12 +1113,22 @@ proc setWatchInterval {} {
11131113
11141114proc refreshItem {cnum vartype varname} {
11151115 if {$vartype == " sig" } {
1116- set ret [hal gets $varname ]
1117- set varnumtype [hal stype $varname ]
1116+ set getCmd gets
1117+ set typeCmd stype
11181118 } else {
1119- set ret [hal getp $varname ]
1120- set varnumtype [hal ptype $varname ]
1119+ set getCmd getp
1120+ set typeCmd ptype
1121+ }
1122+
1123+ if {[catch { set ret [hal $getCmd $varname ] } error]} {
1124+ setStatusbar $error
1125+ $::cisp itemconfigure text$cnum -text " ----"
1126+ $::cisp itemconfigure oval$cnum -fill lightgray
1127+ return
11211128 }
1129+
1130+ set varnumtype [hal $typeCmd $varname ]
1131+
11221132 if {$ret == " TRUE" } {
11231133 $::cisp itemconfigure oval$cnum -fill yellow
11241134 } elseif {$ret == " FALSE" } {
You can’t perform that action at this time.
0 commit comments