We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5ce6e5 commit c7603f5Copy full SHA for c7603f5
arduino/cli/commander.go
@@ -23,6 +23,7 @@ import (
23
"fmt"
24
"os"
25
"path/filepath"
26
+ "time"
27
28
"github.com/arduino/arduino-cli/cli/instance"
29
"github.com/arduino/arduino-cli/commands/board"
@@ -71,6 +72,7 @@ func NewCommander() (arduino.Commander, error) {
71
72
func (c *commander) BoardList() ([]*rpc.DetectedPort, error) {
73
req := &rpc.BoardListRequest{
74
Instance: c.Instance,
75
+ Timeout: time.Second.Milliseconds(),
76
}
77
ports, err := board.List(req)
78
if err != nil {
0 commit comments