Skip to content

Commit

Permalink
AD7124 remove extra rx method as its handled by built-ins
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Nov 22, 2023
1 parent 8631244 commit db5933d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions adi/ad7124.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ def __init__(self, uri="", device_index=0):
self.channel.append(self._channel(self._ctrl, name))
rx.__init__(self)

def rx(self):
sig = super().rx()

if (
self._rx_unbuffered_data
or self._complex_data
or self.rx_output_type == "raw"
):
return sig
else:
mv_sig = []

for signal in sig:
mv_sig.append(signal / 1000)

return mv_sig

@property
def sample_rate(self):
"""Sets sampling frequency of the AD7124"""
Expand Down

0 comments on commit db5933d

Please sign in to comment.