Skip to content

Commit

Permalink
ad7606: don't add timestamp channel to channels array
Browse files Browse the repository at this point in the history
The soft timestamp channel is a special IIO channel.
It's not an RX channel, so it hasn't any of the typically attributes (raw,
scale, etc) like the other RX channels.

So, just ignore it.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Aug 26, 2024
1 parent 5438d00 commit 0272490
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adi/ad7606.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def __init__(self, uri="", device_name=""):
self.channel = []
for ch in self._ctrl.channels:
name = ch._id
if (name == "timestamp"):
continue
self._rx_channel_names.append(name)
self.channel.append(self._channel(self, name))

Expand Down

0 comments on commit 0272490

Please sign in to comment.