Skip to content

Commit 4190bc3

Browse files
committed
fix the failure_count issue...sorry about that!
1 parent e01c762 commit 4190bc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_esp32spi/adafruit_esp32spi_wifimanager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def connect_normal(self):
112112
"""
113113
Attempt a regular style WiFi connection
114114
"""
115+
failure_count = 0
115116
while not self._esp.is_connected:
116117
try:
117118
if self.debug:
@@ -132,6 +133,7 @@ def connect_enterprise(self):
132133
"""
133134
Attempt an enterprise style WiFi connection
134135
"""
136+
failure_count = 0
135137
self._esp.wifi_set_network(bytes(self.ent_ssid, 'utf-8'))
136138
self._esp.wifi_set_entidentity(bytes(self.ent_ident, 'utf-8'))
137139
self._esp.wifi_set_entusername(bytes(self.ent_user, 'utf-8'))

0 commit comments

Comments
 (0)