We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ad8eeb commit f3cc402Copy full SHA for f3cc402
command/device/provision.go
@@ -78,7 +78,10 @@ func (p provision) run() error {
78
return err
79
}
80
defer p.ser.Close()
81
- logrus.Infof("%s\n\n", "Connected to board")
+
82
+ // Wait some time before using the serial port
83
+ time.Sleep(2000 * time.Millisecond)
84
+ logrus.Infof("%s\n\n", "Connected to the board")
85
86
// Send configuration commands to the board
87
err = p.configBoard()
internal/serial/serial.go
@@ -55,7 +55,7 @@ func (s *Serial) Connect(address string) error {
55
56
s.port = port
57
58
- s.port.SetReadTimeout(time.Millisecond * 2000)
+ s.port.SetReadTimeout(time.Millisecond * 2500)
59
return nil
60
61
0 commit comments