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

Commit 1820675

Browse files
committed
better match
1 parent 78d3409 commit 1820675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arduino/arduino.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class ArduinoApp {
109109
await this.getMainSketch(dc);
110110
}
111111

112-
if ((!dc.configuration || dc.configuration.indexOf("upload_method=STLink") === -1) && !dc.port) {
112+
if ((!dc.configuration || !/upload_method=[^=,]*st[^,]*link/i.test(dc.configuration)) && !dc.port) {
113113
const choice = await vscode.window.showInformationMessage(
114114
"Serial port is not specified. Do you want to select a serial port for uploading?",
115115
"Yes", "No");

0 commit comments

Comments
 (0)