sea: fix problem with LscDrivable.read_value
This commit is contained in:
@ -892,13 +892,9 @@ class LscDrivable(SeaDrivable):
|
|||||||
|
|
||||||
def read_value(self):
|
def read_value(self):
|
||||||
if self.io.syncio:
|
if self.io.syncio:
|
||||||
try:
|
|
||||||
if self.dblctrl and not self._read_value_error:
|
if self.dblctrl and not self._read_value_error:
|
||||||
reply = self.io.query('hval tt', True)
|
reply = self.io.query('hval tt', True)
|
||||||
else:
|
else:
|
||||||
reply = self.io.query(f'hval tt/{self.rel_paths[1]}', True)
|
reply = self.io.query(f'hval tt/{self._sensor_path}', True)
|
||||||
except Exception as e:
|
|
||||||
print(e)
|
|
||||||
# an updateEvent will be handled before above returns
|
|
||||||
return float(reply)
|
return float(reply)
|
||||||
return self.value
|
return self.value
|
||||||
|
Reference in New Issue
Block a user