Skip to content

st3m/run: change run_view order to improve wifi situ in mpremote

ave requested to merge improve-mpremote-wifi-reliability into main

this is a weird one.

so: _make_reactor() calls wifi._onoff_wifi_update(), which disables your wifi if your default wifi state is off. if running an app via mpremote and you need to test wifi, you'd probably try to enable wifi on on_enter or on __init__, which are currently triggered before the wifi._onoff_wifi_update() as the view is loaded into ViewManager first.

this changes the order slightly which IME does not break anything, but it makes wifi function in aforementioned situation. prob good for UX.

hard to parse screenshots for convenience (some of the pastes are function calls to st3m/wifi):

before: image

after: image

Merge request reports

Loading