Skip to content

Commit 8be610c

Browse files
author
Melissa LeBlanc-Williams
committed
Linting
1 parent a7b8d4a commit 8be610c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_esp32spi/adafruit_esp32spi_wifimanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ESPSPI_WiFiManager:
3939
"""
4040
A class to help manage the Wifi connection
4141
"""
42-
def __init__(self, esp, settings, attempts=3, status_neopixel=None):
42+
def __init__(self, esp, settings, attempts=1, status_neopixel=None):
4343
"""
4444
:param ESP_SPIcontrol esp: The ESP object we are using
4545
:param dict settings: The WiFi and Adafruit IO Settings (See examples)
@@ -52,7 +52,7 @@ def __init__(self, esp, settings, attempts=3, status_neopixel=None):
5252
self.debug = False
5353
self.ssid = settings['ssid']
5454
self.password = settings['password']
55-
self.attempts = 3
55+
self.attempts = attempts
5656
requests.set_interface(self._esp)
5757
if status_neopixel:
5858
self.neopix = neopixel.NeoPixel(status_neopixel, 1, brightness=0.2)

0 commit comments

Comments
 (0)