diff --git a/circuitpython_nrf24l01/rf24_mesh.py b/circuitpython_nrf24l01/rf24_mesh.py index a07982d..70e92ed 100644 --- a/circuitpython_nrf24l01/rf24_mesh.py +++ b/circuitpython_nrf24l01/rf24_mesh.py @@ -239,11 +239,7 @@ def _make_contact(self, lvl: int) -> List[int]: while time.monotonic_ns() < timeout and len(responders) < MESH_MAX_POLL: if self._net_update() == NETWORK_POLL: contacted = self.frame_buf.header.from_node - is_duplicate = False - for contact in responders: - if contacted == contact: - is_duplicate = True - if not is_duplicate: + if contacted not in responders: responders.append(contacted) return responders