Skip to content

Commit 01a118e

Browse files
committed
Wait a while before using serial port
1 parent 114942c commit 01a118e

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
@@ -61,7 +61,10 @@ func (p provision) run() error {
6161
return err
6262
}
6363
defer p.ser.Close()
64-
logrus.Infof("%s\n\n", "Connected to board")
64+
65+
// Wait some time before using the serial port
66+
time.Sleep(500 * time.Millisecond)
67+
logrus.Infof("%s\n\n", "Connected to the board")
6568

6669
// Send configuration commands to the board
6770
err = p.configBoard()

0 commit comments

Comments
 (0)