Skip to content

Commit d51bf9f

Browse files
author
Akos Kitta
committed
warn when uploading with programmer but not set
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent f4097b5 commit d51bf9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arduino-ide-extension/src/browser/contributions/upload-sketch.ts

+3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ export class UploadSketch extends SketchContribution {
9999
]);
100100
this.outputChannelManager.getChannel('Arduino: upload').clear();
101101
const programmer = usingProgrammer ? data.selectedProgrammer : undefined;
102+
if (usingProgrammer && !programmer) {
103+
this.messageService.warn('Programmer is not selected. Uploading without programmer.', { timeout: 2000 });
104+
}
102105
await this.coreService.upload({
103106
sketchUri: uri,
104107
fqbn,

0 commit comments

Comments
 (0)