diff --git a/adi/compat.py b/adi/compat.py index 88c641f93..00598a7a3 100644 --- a/adi/compat.py +++ b/adi/compat.py @@ -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 diff --git a/adi/rx_tx.py b/adi/rx_tx.py index 6ae03a663..4b2682555 100644 --- a/adi/rx_tx.py +++ b/adi/rx_tx.py @@ -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 @@ -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):