Skip to content

Commit f20cb39

Browse files
authored
Merge pull request #5 from adafruit/timeout_fix
fix for bad handling of timeout response
2 parents 9d5f098 + 8e8625a commit f20cb39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def parse_dhcp_response(self, response_timeout):
225225
while packet_sz <= 0:
226226
packet_sz = self._sock.available()
227227
if (time.monotonic() - start_time) > response_timeout:
228-
return 255
228+
return (255, 0)
229229
time.sleep(0.05)
230230
# store packet in buffer
231231
_BUFF = self._sock.recv(packet_sz)[0]

0 commit comments

Comments
 (0)