Skip to content

Commit 9c905f7

Browse files
authored
Merge pull request #217 from justmobilize/update-comments
Update comments specific to networking modules
2 parents 53b1412 + 124fe91 commit 9c905f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ def _wait_for_msg(self, timeout: Optional[float] = None) -> Optional[int]:
996996
res = self._sock_exact_recv(1)
997997
except self._socket_pool.timeout:
998998
return None
999-
else: # socketpool, esp32spi
999+
else: # socketpool, esp32spi, wiznet5k
10001000
try:
10011001
res = self._sock_exact_recv(1, timeout=timeout)
10021002
except OSError as error:
@@ -1085,7 +1085,7 @@ def _sock_exact_recv(
10851085
"""
10861086
stamp = self.get_monotonic_time()
10871087
if not self._backwards_compatible_sock:
1088-
# CPython/Socketpool Impl.
1088+
# CPython, socketpool, esp32spi, wiznet5k
10891089
rc = bytearray(bufsize)
10901090
mv = memoryview(rc)
10911091
recv_len = self._sock.recv_into(rc, bufsize)
@@ -1102,7 +1102,7 @@ def _sock_exact_recv(
11021102
raise MMQTTException(
11031103
f"Unable to receive {to_read} bytes within {read_timeout} seconds."
11041104
)
1105-
else: # ESP32SPI Impl.
1105+
else: # Legacy: fona, esp_atcontrol
11061106
# This will time out with socket timeout (not receive timeout).
11071107
rc = self._sock.recv(bufsize)
11081108
if not rc:

0 commit comments

Comments
 (0)