Skip to content

Commit

Permalink
Merge pull request #217 from justmobilize/update-comments
Browse files Browse the repository at this point in the history
Update comments specific to networking modules
  • Loading branch information
dhalbert authored May 21, 2024
2 parents 53b1412 + 124fe91 commit 9c905f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adafruit_minimqtt/adafruit_minimqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ def _wait_for_msg(self, timeout: Optional[float] = None) -> Optional[int]:
res = self._sock_exact_recv(1)
except self._socket_pool.timeout:
return None
else: # socketpool, esp32spi
else: # socketpool, esp32spi, wiznet5k
try:
res = self._sock_exact_recv(1, timeout=timeout)
except OSError as error:
Expand Down Expand Up @@ -1085,7 +1085,7 @@ def _sock_exact_recv(
"""
stamp = self.get_monotonic_time()
if not self._backwards_compatible_sock:
# CPython/Socketpool Impl.
# CPython, socketpool, esp32spi, wiznet5k
rc = bytearray(bufsize)
mv = memoryview(rc)
recv_len = self._sock.recv_into(rc, bufsize)
Expand All @@ -1102,7 +1102,7 @@ def _sock_exact_recv(
raise MMQTTException(
f"Unable to receive {to_read} bytes within {read_timeout} seconds."
)
else: # ESP32SPI Impl.
else: # Legacy: fona, esp_atcontrol
# This will time out with socket timeout (not receive timeout).
rc = self._sock.recv(bufsize)
if not rc:
Expand Down

0 comments on commit 9c905f7

Please sign in to comment.