fix strange behaviour when parmeter name starts with inf

'inf' is interpreted a floating point infinity on a drivable object

x info -> run x inf

therefore use 'hval $path' instead of 'result $sicscommand' to
retrieve a nodes value in hdbItem
This commit is contained in:
2022-12-01 16:31:33 +01:00
parent 07b372c032
commit 34d9e3b48b

View File

@ -102,7 +102,8 @@ proc hdbItem {path title} {
return
} else {
set cmd2 ""
if {[catch {set val [result $cmd]} msg]} {
# using {set val [result $cmd]} will have strange effects: 'xatto info' is like 'run xatto inf'!
if {[catch {set val [hval $path]} msg]} {
if {$msg eq "ERROR: not read yet"} {
set val ""
} else {