Skip to content

Commit 1e04b8e

Browse files
author
BiffoBear
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py
2 parents 394b950 + abdec8a commit 1e04b8e

File tree

6 files changed

+180
-312
lines changed

6 files changed

+180
-312
lines changed

adafruit_wiznet5k/adafruit_wiznet5k.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
_SNSR_SOCK_SYNSENT = const(0x15)
8383
SNSR_SOCK_SYNRECV = const(0x16)
8484
SNSR_SOCK_ESTABLISHED = const(0x17)
85-
_SNSR_SOCK_FIN_WAIT = const(0x18)
85+
SNSR_SOCK_FIN_WAIT = const(0x18)
8686
_SNSR_SOCK_CLOSING = const(0x1A)
8787
_SNSR_SOCK_TIME_WAIT = const(0x1B)
8888
_SNSR_SOCK_CLOSE_WAIT = const(0x1C)
@@ -825,7 +825,7 @@ def socket_open(self, socket_num: int, conn_mode: int = _SNMR_TCP) -> int:
825825
if status in (
826826
SNSR_SOCK_CLOSED,
827827
_SNSR_SOCK_TIME_WAIT,
828-
_SNSR_SOCK_FIN_WAIT,
828+
SNSR_SOCK_FIN_WAIT,
829829
_SNSR_SOCK_CLOSE_WAIT,
830830
_SNSR_SOCK_CLOSING,
831831
_SNSR_SOCK_UDP,
@@ -1051,7 +1051,7 @@ def socket_write(
10511051
if self.socket_status(socket_num)[0] in (
10521052
SNSR_SOCK_CLOSED,
10531053
_SNSR_SOCK_TIME_WAIT,
1054-
_SNSR_SOCK_FIN_WAIT,
1054+
SNSR_SOCK_FIN_WAIT,
10551055
_SNSR_SOCK_CLOSE_WAIT,
10561056
_SNSR_SOCK_CLOSING,
10571057
) or (timeout and time.monotonic() - stamp > timeout):

0 commit comments

Comments
 (0)