Skip to content

Commit

Permalink
fix esp32h2 set target on idf446 (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 authored Nov 17, 2023
1 parent 2479d0f commit 154fe29
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/espIdf/setTarget/setTargetInIdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,17 @@ export async function setTargetInIDF(
"idf.enableCCache",
workspaceFolder.uri
) as boolean;
const setTargetArgs: string[] = [idfPy, "-B", buildDirPath];
const setTargetArgs: string[] = [idfPy];
if (selectedTarget.isPreview) {
setTargetArgs.push("--preview");
}
setTargetArgs.push("-B", buildDirPath);
if (enableCCache) {
modifiedEnv.IDF_CCACHE_ENABLE = "1";
} else {
modifiedEnv.IDF_CCACHE_ENABLE = undefined;
}
setTargetArgs.push("set-target", selectedTarget.target);
if (selectedTarget.isPreview) {
setTargetArgs.push("--preview");
}
const pythonBinPath = readParameter(
"idf.pythonBinPath",
workspaceFolder.uri
Expand Down

0 comments on commit 154fe29

Please sign in to comment.