Fix issue when board is not specified

This commit is contained in:
Ivan Kravets
2016-01-30 21:45:26 +02:00
parent b44c75a3c1
commit 21b52031e7

View File

@ -185,7 +185,7 @@ def BuildFrameworks(env, frameworks):
if not frameworks or "uploadlazy" in COMMAND_LINE_TARGETS:
return
board_frameworks = env.get("BOARD_OPTIONS", {}).get("frameworks")
board_frameworks = env.get("BOARD_OPTIONS", {}).get("frameworks", [])
if frameworks == ["platformio"]:
if board_frameworks:
frameworks.insert(0, board_frameworks[0])