We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 050d01e commit 46e58b5Copy full SHA for 46e58b5
cli/arguments/port.go
@@ -61,7 +61,14 @@ func (p *Port) GetPort(instance *rpc.Instance, sk *sketch.Sketch) (*discovery.Po
61
}
62
63
if address == "" {
64
- return nil, nil
+ // If no address is provided we assume the user is trying to upload
65
+ // to a board that supports a tool that automatically detects
66
+ // the attached board without specifying explictly a port.
67
+ // Tools that work this way must be specified using the property
68
+ // "BOARD_ID.upload.tool.default" in the platform's boards.txt.
69
+ return &discovery.Port{
70
+ Protocol: "default",
71
+ }, nil
72
73
logrus.WithField("port", address).Tracef("Upload port")
74
0 commit comments