Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

fix board version issue #521

Merged
merged 1 commit into from
Apr 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/arduino/boardManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ export class BoardManager {
// addedPlatform.boards = util.union(addedPlatform.boards, plat.boards, (a, b) => {
// return a.name === b.name;
// });
// addedPlatform.versions.push(plat.version);
if (addedPlatform.name === plat.name) {
addedPlatform.versions.push(plat.version);
}
} else {
plat.versions = [plat.version];
// Clear the version information since the plat will be used to contain all supported versions.
Expand Down