Quick fix when board doesn’t have debug configuration

This commit is contained in:
Ivan Kravets
2017-03-31 19:50:26 +03:00
parent 75e1173f80
commit 62e755ce60

View File

@@ -29,7 +29,7 @@ def ProcessDebug(env):
def DebugLinkSettings(env):
if "BOARD" not in env:
return
board_debug = env.BoardConfig().get("debug")
board_debug = env.BoardConfig().get("debug", {})
if not board_debug or not board_debug.get("links"):
return
debug_links = board_debug.get("links")