Skip to content

Commit

Permalink
projects:ad7191_iio:Modified the ad719x.py file
Browse files Browse the repository at this point in the history
Signed-off-by: Kantipudi-Supriya <[email protected]>
  • Loading branch information
Kantipudi-Supriya committed Sep 12, 2024
1 parent a758f52 commit b517db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adi/ad719x.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b517db5

Please sign in to comment.