Skip to content

Commit 12d455c

Browse files
committed
Update sketch_utils.sh
1 parent 0d93cc7 commit 12d455c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/scripts/sketch_utils.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
201201
echo "Debug (sketch)- extracted path = $lib_sketch_name"
202202
#append json file where key is fqbn, sketch name, sizes -> extracted values
203203
echo "{\"name\": \"$lib_sketch_name\",
204-
\"sizes\": {
204+
\"sizes\": [{
205205
\"flash_bytes\": $flash_bytes,
206206
\"flash_percentage\": $flash_percentage,
207207
\"ram_bytes\": $ram_bytes,
208208
\"ram_percentage\": $ram_percentage
209-
}
209+
}]
210210
}," >> "$sizes_file"
211211

212212
elif [ -f "$ide_path/arduino-builder" ]; then
@@ -408,10 +408,10 @@ function build_sketches(){ # build_sketches <ide_path> <user_path> <target> <pat
408408
sed -i '$ s/.$//' "$sizes_file"
409409
fi
410410
#echo end of sketches sizes_file json
411-
echo "]}" >> "$sizes_file"
411+
echo "]" >> "$sizes_file"
412412
#echo end of board sizes_file json
413413
echo "}," >> "$sizes_file"
414-
414+
415415
return 0
416416
}
417417

0 commit comments

Comments
 (0)