Skip to content

Commit 6f2978d

Browse files
committed
Correct drill-down to platforms
1 parent d0c3507 commit 6f2978d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def main():
482482
# Find platform path via `arduino-cli core list --format json`
483483
import json
484484
output = subprocess.check_output(["arduino-cli", "core", "list", "--format", "json"]).decode()
485-
core_list = json.loads(output)
485+
core_list = json.loads(output)["platforms"]
486486
for core in core_list:
487487
if core["id"] == core_fqbn:
488488
platform_path = core["install_dir"]

0 commit comments

Comments
 (0)