fix bug in ls340res

return value must be converted to float
This commit is contained in:
zolliker 2022-09-07 13:10:37 +02:00
parent 6929422b94
commit 9a40d27354

View File

@ -42,4 +42,4 @@ class ResChannel(HasIodev, Readable):
channel = Property('the channel A,B,C or D', StringType())
def read_value(self):
return self._iodev.communicate('SRDG?%s' % self.channel)
return float(self._iodev.communicate('SRDG?%s' % self.channel))