forked from platformio/platformio-core
Quick fix when board doesn’t have debug configuration
This commit is contained in:
@@ -29,7 +29,7 @@ def ProcessDebug(env):
|
|||||||
def DebugLinkSettings(env):
|
def DebugLinkSettings(env):
|
||||||
if "BOARD" not in env:
|
if "BOARD" not in env:
|
||||||
return
|
return
|
||||||
board_debug = env.BoardConfig().get("debug")
|
board_debug = env.BoardConfig().get("debug", {})
|
||||||
if not board_debug or not board_debug.get("links"):
|
if not board_debug or not board_debug.get("links"):
|
||||||
return
|
return
|
||||||
debug_links = board_debug.get("links")
|
debug_links = board_debug.get("links")
|
||||||
|
Reference in New Issue
Block a user