Badger2040W: Fixes to launcher and badger libs.

feature/badger2040w
Phil Howard 2023-01-16 14:27:16 +00:00 zatwierdzone przez Phil Howard
rodzic 03d5224e3e
commit 1dbc992180
4 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -9,7 +9,7 @@ import jpegdec
APP_DIR = "/examples"
# Reduce clock speed to 48MHz
badger2040.system_speed(badger2040.SYSTEM_NORMAL)
badger2040.system_speed(badger2040.SYSTEM_TURBO)
changed = False
exited_to_launcher = False

Wyświetl plik

@ -112,7 +112,7 @@ def state_load(app, defaults):
def launch(file):
state_set_running(file[1:])
state_set_running(file)
gc.collect()
@ -131,7 +131,7 @@ def launch(file):
except ImportError:
# If the app doesn't exist, notify the user
warning(None, "Could not launch: " + file[1:])
warning(None, f"Could not launch: {file}")
time.sleep(4.0)
except Exception as e:
# If the app throws an error, catch it and display!

Wyświetl plik

@ -75,6 +75,7 @@ class NetworkManager:
self._sta_if.active(True)
self._sta_if.connect(ssid, psk)
self._sta_if.config(pm=0xa11140)
try:
await uasyncio.wait_for(self.wait(network.STA_IF), self._client_timeout)

Wyświetl plik

@ -0,0 +1 @@
import launcher # noqa F401