Skip to content

Commit

Permalink
reviewed RF24Messh._make_contacts()
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jun 9, 2024
1 parent 8818abc commit 9288f08
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions circuitpython_nrf24l01/rf24_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Check warning on line 242 in circuitpython_nrf24l01/rf24_mesh.py

View check run for this annotation

Codecov / codecov/patch

circuitpython_nrf24l01/rf24_mesh.py#L242

Added line #L242 was not covered by tests
responders.append(contacted)
return responders

Expand Down

0 comments on commit 9288f08

Please sign in to comment.