Skip to content

Commit 695bee7

Browse files
committed
Take into account serverless debug probes when configuring debug speed
Resolve platformio/platformio-core#3864
1 parent 445e724 commit 695bee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ def _add_default_debug_tools(self, board):
182182

183183
def configure_debug_options(self, initial_debug_options, ide_data):
184184
debug_options = copy.deepcopy(initial_debug_options)
185-
server_executable = debug_options["server"]["executable"].lower()
186185
adapter_speed = initial_debug_options.get("speed")
187186
if adapter_speed:
187+
server_executable = debug_options["server"].get("executable", "").lower()
188188
if "openocd" in server_executable:
189189
debug_options["server"]["arguments"].extend(
190190
["-c", "adapter speed %s" % adapter_speed]

0 commit comments

Comments
 (0)