Skip to content

Commit eb0a451

Browse files
author
brentru
committed
de-paren broadcast server addr
1 parent 2fd23c3 commit eb0a451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
DHCP_SERVER_PORT = const(67)
7373
# DHCP Lease Time, in seconds
7474
DEFAULT_LEASE_TIME = const(900)
75-
BROADCAST_SERVER_ADDR = (('255.255.255.255'))
75+
BROADCAST_SERVER_ADDR = '255.255.255.255'
7676

7777
# pylint: enable=bad-whitespace
7878
_BUFF = bytearray(317)
@@ -283,7 +283,7 @@ def request_dhcp_lease(self):
283283
while self._dhcp_state != STATE_DHCP_LEASED:
284284
if self._dhcp_state == STATE_DHCP_START:
285285
self._transaction_id += 1
286-
self._sock.connect((BROADCAST_SERVER_ADDR, DHCP_SERVER_PORT))
286+
self._sock.connect(((BROADCAST_SERVER_ADDR), DHCP_SERVER_PORT))
287287
self.send_dhcp_message(STATE_DHCP_DISCOVER,
288288
((time.monotonic() - start_time) / 1000))
289289
self._dhcp_state = STATE_DHCP_DISCOVER

0 commit comments

Comments
 (0)