Skip to content

Commit

Permalink
alias "esp8266" platform to "esp"
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Jan 6, 2022
1 parent 5a4647b commit 7dab3fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/mcmanifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1379,11 +1379,10 @@ export class Tool extends TOOL {
if (this.platform)
throw new Error("-p '" + name + "': too many platforms!");
name = name.toLowerCase();
this.fullplatform = name;
this.environment.FULLPLATFORM = name;
this.environment.PLATFORMPATH = "";
let parts = name.split("/");
if ((parts[0] == "sim") || (parts[0] == "simulator")) {
if ("esp8266" === parts[0])
parts[0] = "esp";
else if ((parts[0] == "sim") || (parts[0] == "simulator")) {
parts[0] = this.currentPlatform;
this.mcsim = true;
}
Expand Down

0 comments on commit 7dab3fd

Please sign in to comment.