Skip to content

Commit 82edb0a

Browse files
committed
pylint
1 parent aa96dd1 commit 82edb0a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adafruit_esp32spi/adafruit_esp32spi.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -771,13 +771,13 @@ def socket_connect(self, socket_num, dest, port, conn_mode=TCP_MODE):
771771
# but the socket for writing is created via start_server
772772
self.start_server(port, socket_num, conn_mode)
773773
return True
774-
else:
775-
times = time.monotonic()
776-
while (time.monotonic() - times) < 3: # wait 3 seconds
777-
if self.socket_connected(socket_num):
778-
return True
779-
time.sleep(0.01)
780-
raise RuntimeError("Failed to establish connection")
774+
775+
times = time.monotonic()
776+
while (time.monotonic() - times) < 3: # wait 3 seconds
777+
if self.socket_connected(socket_num):
778+
return True
779+
time.sleep(0.01)
780+
raise RuntimeError("Failed to establish connection")
781781

782782
def socket_close(self, socket_num):
783783
"""Close a socket using the ESP32's internal reference number"""

0 commit comments

Comments
 (0)