Skip to content

Commit 8d7a063

Browse files
committed
Correct debug logic, exit on unknown core
1 parent 1b8624b commit 8d7a063

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def configure_default_packages(self, variables, targets):
4545
else:
4646
sys.stderr.write(
4747
"Error! Unknown build.core value '%s'. Don't know which Arduino core package to use." % build_core)
48+
env.Exit(1)
4849

4950
# if we want to build a filesystem, we need the tools.
5051
if "buildfs" in targets:
@@ -131,7 +132,7 @@ def configure_debug_session(self, debug_config):
131132
adapter_speed = debug_config.speed or "1000"
132133
server_options = debug_config.server or {}
133134
server_arguments = server_options.get("arguments", [])
134-
if "interface/cmsis-dap.cfg" in server_arguments or "interface/picoprobe.cfg":
135+
if "interface/cmsis-dap.cfg" in server_arguments or "interface/picoprobe.cfg" in server_arguments:
135136
server_arguments.extend(
136137
["-c", "adapter speed %s" % adapter_speed]
137138
)

0 commit comments

Comments
 (0)