Skip to content

Commit 18e794c

Browse files
committed
uploader: added a small sleep to allow board reset
Signed-off-by: Cristian Maglie <c.maglie@arduino.cc>
1 parent 7bccd71 commit 18e794c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

upload/upload.go

+4
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ func touchSerialPortAt1200bps(port string, l Logger) error {
180180
if err != nil {
181181
return errors.Wrapf(err, "Can't set DTR")
182182
}
183+
184+
// Wait a bit to allow restart of the board
185+
time.Sleep(200 * time.Millisecond)
186+
183187
return nil
184188
}
185189

0 commit comments

Comments
 (0)