Skip to content

Commit baca531

Browse files
author
Bongjun Hur
committed
crlf -> lf
1 parent 93399f6 commit baca531

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

adafruit_wiznet5k/adafruit_wiznet5k.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def set_dhcp(self, hostname=None, response_timeout=3):
196196
# to avoid the code during DHCP - assert self.link_status, "Ethernet cable disconnected!"
197197
start_time = time.monotonic()
198198
while True:
199-
if self.link_status or ((time.monotonic() - start_time) > 5) :
199+
if self.link_status or ((time.monotonic() - start_time) > 5):
200200
break
201201
time.sleep(1)
202202
if self._debug:

adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ def send_dhcp_message(self, state, time_elapsed):
127127
:param float time_elapsed: Number of seconds elapsed since renewal.
128128
129129
"""
130-
# before making send packet, shoule init _BUFF.
130+
# before making send packet, shoule init _BUFF.
131131
# if not, DHCP sometimes fails, wrong padding, garbage bytes, ...
132-
_BUFF[:] = b'\x00' * len(_BUFF)
132+
_BUFF[:] = b"\x00" * len(_BUFF)
133133

134134
# OP
135135
_BUFF[0] = DHCP_BOOT_REQUEST

examples/wiznet5k_simpleserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
conn, addr = server.accept() # Wait for a connection from a client.
3232
while True:
3333
with conn:
34-
data = conn.recv(1024)
35-
if data: # Wait for receiving data
34+
data = conn.recv(1024)
35+
if data: # Wait for receiving data
3636
print(data)
3737
conn.send(data) # Echo message back to client

0 commit comments

Comments
 (0)