Skip to content

Commit e6bfd36

Browse files
committed
remove wifimanager debug arg
- Already in ap_mode branch
1 parent 41eab1c commit e6bfd36

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

adafruit_esp32spi/adafruit_esp32spi_wifimanager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class ESPSPI_WiFiManager:
4343
NORMAL = const(1)
4444
ENTERPRISE = const(2)
4545

46-
# pylint: disable=too-many-arguments, line-too-long
47-
def __init__(self, esp, secrets, status_pixel=None, attempts=2, connection_type=NORMAL, debug=False):
46+
# pylint: disable=too-many-arguments
47+
def __init__(self, esp, secrets, status_pixel=None, attempts=2, connection_type=NORMAL):
4848
"""
4949
:param ESP_SPIcontrol esp: The ESP object we are using
5050
:param dict secrets: The WiFi and Adafruit IO secrets dict (See examples)
@@ -56,7 +56,7 @@ def __init__(self, esp, secrets, status_pixel=None, attempts=2, connection_type=
5656
"""
5757
# Read the settings
5858
self.esp = esp
59-
self.debug = debug
59+
self.debug = False
6060
self.ssid = secrets['ssid']
6161
self.password = secrets['password']
6262
self.attempts = attempts
@@ -78,7 +78,7 @@ def __init__(self, esp, secrets, status_pixel=None, attempts=2, connection_type=
7878
self.ent_user = secrets['ent_user']
7979
if secrets.get('ent_password'):
8080
self.ent_password = secrets['ent_password']
81-
# pylint: enable=too-many-arguments, line-too-long
81+
# pylint: enable=too-many-arguments
8282

8383
def reset(self):
8484
"""

examples/esp32spi_wsgiserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# status_light = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=1)
4242

4343
## Connect to wifi with secrets
44-
wifi = wifimanager.ESPSPI_WiFiManager(esp, secrets, status_light, debug=True)
44+
wifi = wifimanager.ESPSPI_WiFiManager(esp, secrets, status_light)
4545
wifi.connect()
4646

4747
class SimpleWSGIApplication:

0 commit comments

Comments
 (0)