diff --git a/adi/ad719x.py b/adi/ad719x.py index 8e90240a5..beade3eb2 100644 --- a/adi/ad719x.py +++ b/adi/ad719x.py @@ -97,7 +97,7 @@ def to_volts(self, index, val): ret = (val+_offset)/1000 * _scale if isinstance(val, np.ndarray): - ret = [(x+offset)/1000 * _scale for x in val] + ret = [((x+_offset)/1000) * _scale for x in val] if ret is None: raise Exception("Error in converting to actual voltage")