Skip to content
Snippets Groups Projects
Commit f6fb2fb5 authored by ave's avatar ave
Browse files

w1f1: fix connections

parent c0eaf83d
No related branches found
No related tags found
No related merge requests found
...@@ -231,7 +231,9 @@ class WifiApp(Application): ...@@ -231,7 +231,9 @@ class WifiApp(Application):
self._waiting_for_password = True self._waiting_for_password = True
self.vm.push(KeyboardView(self._password_model)) self.vm.push(KeyboardView(self._password_model))
if self._waiting_for_password and not self.vm._history: if self._waiting_for_password and (
not self.vm._history or not isinstance(self.vm._history[-1], WifiApp)
):
ssid = self._nearby_wlans[self._wlan_offset][0].decode() ssid = self._nearby_wlans[self._wlan_offset][0].decode()
psk = self._password_model.text psk = self._password_model.text
print(ssid, psk) print(ssid, psk)
......
...@@ -10,4 +10,4 @@ author = "ave" ...@@ -10,4 +10,4 @@ author = "ave"
license = "LGPL-3.0-only" license = "LGPL-3.0-only"
url = "https://git.flow3r.garden/flow3r/flow3r-firmware" url = "https://git.flow3r.garden/flow3r/flow3r-firmware"
description = "Lets you use multiple wireless networks." description = "Lets you use multiple wireless networks."
version = 2 version = 3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment