File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ def compose(self) -> ComposeResult:
86
86
87
87
def on_mount (self ) -> None :
88
88
# Event handler called when the app is mounted for the first time
89
- self .title = "Configurator"
90
89
self .sub_title = "Main Menu"
91
90
print ("Main screen mounted." )
92
91
@@ -131,6 +130,7 @@ def on_mount(self) -> None:
131
130
print ("IDF Branch: " + str (self .setting_idf_branch ))
132
131
print ("IDF Commit: " + str (self .setting_idf_commit ))
133
132
print ("IDF Debug Level: " + str (self .setting_debug_level ))
133
+ self .title = "Configurator"
134
134
self .push_screen ("main" )
135
135
136
136
def arduino_default_path ():
@@ -256,8 +256,11 @@ def main() -> None:
256
256
elif args .arduino_path == arduino_default_path ():
257
257
print ("Warning: Default Arduino path not found. Disabling copy to Arduino." )
258
258
app .setting_enable_copy = False
259
+ elif args .arduino_path == "/arduino-esp32" : # Docker mount point
260
+ print ("Error: Arduino folder not mounted to /arduino-esp32 in Docker container." )
261
+ exit (1 )
259
262
else :
260
- print ("Invalid path to Arduino core: " + os .path .abspath (args .arduino_path ))
263
+ print ("Error: Invalid path to Arduino core: " + os .path .abspath (args .arduino_path ))
261
264
exit (1 )
262
265
else :
263
266
app .setting_enable_copy = False
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ def compile_libs(self) -> None:
72
72
73
73
label = self .query_one ("#compile-title" , Static )
74
74
self .child_process = None
75
+
76
+ if not self .app .setting_target :
77
+ self .print_error ("No target selected" )
78
+ label .update ("No target selected" )
79
+ return
75
80
if self .app .setting_target == "," .join (self .app .supported_targets ):
76
81
target = "all targets"
77
82
else :
@@ -161,3 +166,8 @@ def compose(self) -> ComposeResult:
161
166
self .button_widget = Button ("Back" , id = "compile-back-button" )
162
167
yield self .button_widget
163
168
yield Footer ()
169
+
170
+ def on_mount (self ) -> None :
171
+ # Event handler called when the screen is mounted
172
+ print ("Compile screen mounted" )
173
+ self .sub_title = "Compilation"
You can’t perform that action at this time.
0 commit comments