Closedown

This commit is contained in:
gac-x03da
2018-02-09 15:42:00 +01:00
parent 16389ff5a8
commit 96389cf742

View File

@@ -138,7 +138,7 @@ class Keithley(object):
try:
v = int(-math.log10(value / 2)) - 1
v = max(v, 0)
v = min(v, len(RANGE_STATES)-1)
v = min(v, len(self.RANGE_STATES)-1)
except ValueError:
v = 0
elif isinstance(value, str):