mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-15 13:19:28 +00:00
Enhance board config auto-selection with hardwareId (#1913)
This commit is contained in:
@@ -323,14 +323,14 @@ export class BoardDiscovery
|
||||
}
|
||||
|
||||
private fromRpcPort(rpcPort: RpcPort): Port {
|
||||
const port = {
|
||||
return {
|
||||
address: rpcPort.getAddress(),
|
||||
addressLabel: rpcPort.getLabel(),
|
||||
protocol: rpcPort.getProtocol(),
|
||||
protocolLabel: rpcPort.getProtocolLabel(),
|
||||
properties: Port.Properties.create(rpcPort.getPropertiesMap().toObject()),
|
||||
hardwareId: rpcPort.getHardwareId(),
|
||||
};
|
||||
return port;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user