Skip to content

Commit

Permalink
Fix __ name mangling issue
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Dec 6, 2023
1 parent 2eeb678 commit 255e74a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adi/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class compat_libiio:
"""Compatibility class for libiio v1.X."""

def __is_libiio_v1(self):
def _is_libiio_v1(self) -> bool:
"""Check is we are using >= v1.X."""
v = iio.version
return v[0] >= 1
Expand Down
4 changes: 2 additions & 2 deletions adi/rx_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, rx_buffer_size=1024):
self._num_rx_channels = len(self._rx_channel_names)
self.rx_enabled_channels = rx_enabled_channels
self.rx_buffer_size = rx_buffer_size
if self.__is_libiio_v1():
if self._is_libiio_v1():
self._setup_v1_rx()

@property
Expand Down Expand Up @@ -325,7 +325,7 @@ def __init__(self, tx_cyclic_buffer=False):
self.tx_enabled_channels = tx_enabled_channels
self.tx_cyclic_buffer = tx_cyclic_buffer
dds.__init__(self)
if self.__is_libiio_v1():
if self._is_libiio_v1():
self._setup_v1_tx()

def __del__(self):
Expand Down

0 comments on commit 255e74a

Please sign in to comment.