Skip to content

Commit b664316

Browse files
author
brentru
committed
remove print, debuggin =False
1 parent 2f6f765 commit b664316

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_wiznet5k/adafruit_wiznet5k.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class WIZNET5K:
150150

151151
# pylint: disable=too-many-arguments, too-many-public-methods
152152
def __init__(self, spi_bus, cs, reset=None,
153-
is_dhcp=True, mac=DEFAULT_MAC, debug=True):
153+
is_dhcp=True, mac=DEFAULT_MAC, debug=False):
154154
self._debug = debug
155155
self._chip_type = None
156156
self._device = SPIDevice(spi_bus, cs,
@@ -528,7 +528,8 @@ def socket_open(self, socket_num, dest, port, conn_mode=SNMR_TCP):
528528
if self._debug:
529529
print("*** Opening socket %d"%socket_num)
530530
if self._read_snsr(socket_num)[0] == SNSR_SOCK_CLOSED:
531-
print("w5k socket begin, protocol={}, port={}".format(conn_mode, port))
531+
if self._debug:
532+
print("w5k socket begin, protocol={}, port={}".format(conn_mode, port))
532533
time.sleep(0.00025)
533534

534535
self._write_snmr(socket_num, conn_mode)

0 commit comments

Comments
 (0)