Skip to content

Commit

Permalink
Merge pull request #580 from analogdevicesinc/fix-4630-rx
Browse files Browse the repository at this point in the history
adi:ad4630.py: fix rx
  • Loading branch information
tfcollins authored Jun 17, 2024
2 parents a004772 + 6780466 commit 3824cc2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions adi/ad4630.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ def __init__(self, uri="", device_name="ad4630-24"):
rx.__init__(self)

def rx(self):
if not self._rx__rxbuf:
self._rx_init_channels()
self._rx__rxbuf.refill()
buff = np.frombuffer(self._rx__rxbuf.read(), dtype=np.uint32)

data = [buff[0::2], buff[1::2]]
data = self._rx_buffered_data()
temp = []
if self._num_rx_channels != 2:
for ch in range(0, self._num_rx_channels):
Expand Down

0 comments on commit 3824cc2

Please sign in to comment.