mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-17 06:09:28 +00:00
Made the port optional for upload using programmer
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -103,11 +103,12 @@ export class CoreServiceImpl implements CoreService {
|
||||
uploadReq.setInstance(instance);
|
||||
uploadReq.setSketchPath(sketchpath);
|
||||
uploadReq.setFqbn(fqbn);
|
||||
if ('port' in options) {
|
||||
uploadReq.setPort(options.port);
|
||||
} else {
|
||||
if ('programmer' in options) {
|
||||
uploadReq.setProgrammer(options.programmer.id);
|
||||
}
|
||||
if (options.port) {
|
||||
uploadReq.setPort(options.port);
|
||||
}
|
||||
const result = client.upload(uploadReq);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user