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

Commit 7825a46

Browse files
committed
fix cli analyze mode
1 parent 45aa5db commit 7825a46

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/arduino/arduino.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,6 @@ export class ArduinoApp {
516516
}
517517
const boardDescriptor = this.boardManager.currentBoard.getBuildConfig();
518518

519-
if (mode === BuildMode.Analyze) {
520-
args.push("compile");
521-
}
522519
this._settings.useArduinoCli ? args.push("-b", boardDescriptor) : args.push("--board", boardDescriptor);
523520

524521
if (!ArduinoWorkspace.rootPath) {
@@ -616,7 +613,7 @@ export class ArduinoApp {
616613
"--port", dc.port);
617614

618615
} else {
619-
args.push("--verify");
616+
this._settings.useArduinoCli ? args.unshift("compile") : args.push("--verify");
620617
}
621618

622619
// TODO: Option to add prefrences when using the CLI
@@ -749,7 +746,7 @@ export class ArduinoApp {
749746
this._settings.commandPath,
750747
args,
751748
undefined,
752-
{ channel: arduinoChannel.channel, stdout: stdoutcb, stderr: stderrcb },
749+
{ /*channel: arduinoChannel.channel,*/ stdout: stdoutcb, stderr: stderrcb },
753750
).then(async () => {
754751
const ret = await cleanup("ok");
755752
if (ret) {

0 commit comments

Comments
 (0)