We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db51c97 commit 565e425Copy full SHA for 565e425
1 file changed
software/contrib/menu.py
@@ -15,12 +15,11 @@
15
# Reset the module state and display bootsplash screen.
16
from europi import bootsplash
17
18
-
19
bootsplash()
20
21
22
from bootloader import BootloaderMenu
23
from collections import OrderedDict
+import europi_config
24
25
## Scripts that are included in the menu
26
#
@@ -102,5 +101,17 @@
102
101
])
103
# fmt: on
104
+
105
+# Remove scripts that require wifi if the Pico model in use doesn't
106
+# have a wifi module included
107
+cfg = europi_config.load_europi_config()
108
+if (
109
+ cfg.PICO_MODEL != europi_config.MODEL_PICO_W
110
+ and cfg.PICO_MODEL != europi_config.MODEL_PICO_2W
111
+):
112
+ EUROPI_SCRIPTS.pop("HTTP Interface")
113
+ EUROPI_SCRIPTS.pop("OSC Interface")
114
115
116
if __name__ == "__main__":
117
BootloaderMenu(EUROPI_SCRIPTS).main()
0 commit comments