Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 9808886

Browse files
author
Sebastian Goscik
committed
Fixed typo
Fixed issue where if the device was already connected to a network the connection would fail because of a typo.
1 parent 2cd1d38 commit 9808886

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/OTA/1.0.0/flash/lib/OTA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __init__(self, ssid, password, ip, port):
154154

155155
def connect(self):
156156
self.wlan = network.WLAN(mode=network.WLAN.STA)
157-
if not self.wlan.isconnected() or self.ssid() != self.SSID:
157+
if not self.wlan.isconnected() or self.wlan.ssid() != self.SSID:
158158
for net in self.wlan.scan():
159159
if net.ssid == self.SSID:
160160
self.wlan.connect(self.SSID, auth=(network.WLAN.WPA2,

examples/OTA/1.0.1/flash/lib/OTA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(self, ssid, password, ip, port):
153153

154154
def connect(self):
155155
self.wlan = network.WLAN(mode=network.WLAN.STA)
156-
if not self.wlan.isconnected() or self.ssid() != self.SSID:
156+
if not self.wlan.isconnected() or self.wlan.ssid() != self.SSID:
157157
for net in self.wlan.scan():
158158
if net.ssid == self.SSID:
159159
self.wlan.connect(self.SSID, auth=(network.WLAN.WPA2,

0 commit comments

Comments
 (0)