Skip to content

Commit 06c2ea1

Browse files
committed
fix constant name
1 parent 63bf8f7 commit 06c2ea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_wiznet5k/adafruit_wiznet5k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ def socket_write(
10941094
raise RuntimeError("Socket closed before data was sent.")
10951095
if timeout and time.monotonic() - stamp > timeout:
10961096
raise RuntimeError("Operation timed out. No data sent.")
1097-
if self.read_snir(socket_num)[0] & _SNIR_TIMEOUT:
1097+
if self.read_snir(socket_num)[0] & SNIR_TIMEOUT:
10981098
raise TimeoutError(
10991099
"Hardware timeout while sending on socket {}.".format(socket_num)
11001100
)

0 commit comments

Comments
 (0)