Skip to content

Commit 9a0847b

Browse files
committed
Force targets to be lower case
1 parent 864fe8f commit 9a0847b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tools/config_editor/app.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,13 @@ def main() -> None:
231231

232232
args = parser.parse_args()
233233

234-
# Set the options in the app
235-
if args.target.strip() == "default":
234+
# Force targets to be lower case
235+
args.target = args.target.lower()
236+
237+
# Check if the target is valid
238+
if args.target == "default":
236239
args.target = ",".join([x[0] for x in target_choices if x[1]])
237-
elif args.target.strip() == "all":
240+
elif args.target == "all":
238241
args.target = ",".join([x[0] for x in target_choices])
239242

240243
app.supported_targets = [x[0] for x in target_choices]
@@ -246,6 +249,7 @@ def main() -> None:
246249

247250
app.setting_target = args.target
248251

252+
# Check if the Arduino path is valid
249253
if args.copy:
250254
if check_arduino_path(args.arduino_path):
251255
app.setting_enable_copy = True
@@ -258,6 +262,7 @@ def main() -> None:
258262
else:
259263
app.setting_enable_copy = False
260264

265+
# Set the other options
261266
app.setting_arduino_path = os.path.abspath(args.arduino_path)
262267
app.setting_arduino_branch = args.arduino_branch
263268
app.setting_idf_branch = args.idf_branch

0 commit comments

Comments
 (0)