mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix issue when board is not specified
This commit is contained in:
@ -185,7 +185,7 @@ def BuildFrameworks(env, frameworks):
|
|||||||
if not frameworks or "uploadlazy" in COMMAND_LINE_TARGETS:
|
if not frameworks or "uploadlazy" in COMMAND_LINE_TARGETS:
|
||||||
return
|
return
|
||||||
|
|
||||||
board_frameworks = env.get("BOARD_OPTIONS", {}).get("frameworks")
|
board_frameworks = env.get("BOARD_OPTIONS", {}).get("frameworks", [])
|
||||||
if frameworks == ["platformio"]:
|
if frameworks == ["platformio"]:
|
||||||
if board_frameworks:
|
if board_frameworks:
|
||||||
frameworks.insert(0, board_frameworks[0])
|
frameworks.insert(0, board_frameworks[0])
|
||||||
|
Reference in New Issue
Block a user