mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-10 10:58:33 +00:00
upload with programmer when it's explicitly asked
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -287,15 +287,6 @@ export namespace Programmer {
|
||||
return left.id === right.id && left.name === right.name && left.platform === right.platform;
|
||||
}
|
||||
|
||||
export function toString({ id, platform }: Programmer): string {
|
||||
// tslint:disable-next-line: whitespace
|
||||
const [vendor,] = platform.split(':');
|
||||
if (!vendor) {
|
||||
throw new Error(`Could not extract vendor from platform: '${platform}'.`);
|
||||
}
|
||||
return `${vendor}:${id}`;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export namespace Board {
|
||||
|
||||
Reference in New Issue
Block a user