warn when uploading with programmer but not set

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-07-22 13:54:17 +02:00
parent f4097b5b24
commit d51bf9fb40

View File

@ -99,6 +99,9 @@ export class UploadSketch extends SketchContribution {
]);
this.outputChannelManager.getChannel('Arduino: upload').clear();
const programmer = usingProgrammer ? data.selectedProgrammer : undefined;
if (usingProgrammer && !programmer) {
this.messageService.warn('Programmer is not selected. Uploading without programmer.', { timeout: 2000 });
}
await this.coreService.upload({
sketchUri: uri,
fqbn,