Skip to content

Commit 4348e1d

Browse files
authored
bugfix OSX Arduino CLI
This contribution fixes a simple bug, that prevents the use of custom Arduino Cli on Mac systems.
1 parent b108958 commit 4348e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export async function activate(context: vscode.ExtensionContext) {
123123
const usingBundledArduinoCli = arduinoContextModule.default.arduinoApp.settings.usingBundledArduinoCli;
124124

125125
// Ask the user to switch to the bundled Arduino CLI if we can't resolve the specified path.
126-
if (!usingBundledArduinoCli && (!arduinoPath || !validateArduinoPath(arduinoPath, useArduinoCli))) {
126+
if (!usingBundledArduinoCli && !useArduinoCli && (!arduinoPath || !validateArduinoPath(arduinoPath, useArduinoCli))) {
127127
Logger.traceError("InvalidArduinoPath", new Error(constants.messages.INVALID_ARDUINO_PATH));
128128
await askSwitchToBundledCli(constants.messages.INVALID_ARDUINO_PATH + " " + constants.messages.SWITCH_TO_BUNDLED_CLI);
129129
} else if (!commandPath || !util.fileExistsSync(commandPath)) {

0 commit comments

Comments
 (0)