Skip to content

Commit e0c578a

Browse files
committed
Wait a while before using serial port
1 parent 451db0a commit e0c578a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

command/device/provision.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ func (p provision) run() error {
7878
return err
7979
}
8080
defer p.ser.Close()
81-
logrus.Infof("%s\n\n", "Connected to board")
81+
82+
// Wait some time before using the serial port
83+
time.Sleep(500 * time.Millisecond)
84+
logrus.Infof("%s\n\n", "Connected to the board")
8285

8386
// Send configuration commands to the board
8487
err = p.configBoard()

0 commit comments

Comments
 (0)