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

Commit b91a5ca

Browse files
committed
fix cli analyze mode
1 parent 2e763c8 commit b91a5ca

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/arduino/arduino.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,6 @@ export class ArduinoApp {
515515
}
516516
const boardDescriptor = this.boardManager.currentBoard.getBuildConfig();
517517

518-
if (buildMode === BuildMode.Analyze) {
519-
args.push("compile");
520-
}
521-
522518
if (this.useArduinoCli()) {
523519
args.push("-b", boardDescriptor);
524520
} else {
@@ -626,7 +622,9 @@ export class ArduinoApp {
626622
"--programmer", programmer,
627623
"--port", dc.port);
628624
} else {
629-
if (!this.useArduinoCli()) {
625+
if (this.useArduinoCli()) {
626+
args.unshift("compile");
627+
} else {
630628
args.push("--verify");
631629
}
632630
}
@@ -767,7 +765,7 @@ export class ArduinoApp {
767765
this._settings.commandPath,
768766
args,
769767
undefined,
770-
{ channel: arduinoChannel.channel, stdout: stdoutcb, stderr: stderrcb },
768+
{ /*channel: arduinoChannel.channel,*/ stdout: stdoutcb, stderr: stderrcb },
771769
).then(async () => {
772770
const ret = await cleanup("ok");
773771
if (ret) {

0 commit comments

Comments
 (0)