Skip to content

Commit

Permalink
Wait a bit before opening serial port after bossac flash
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Apr 16, 2019
1 parent 0ee9bb3 commit 90464c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions programmers/bossac/bossac.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func (b *Bossac) Flash(ctx *context.Context, filename string) error {
ports, err := serial.GetPortsList()
ctx.PortName = waitPort(ports, port)

log.Println("Port is online " + ctx.PortName)
time.Sleep(1 * time.Second)

return err
}

Expand Down

0 comments on commit 90464c4

Please sign in to comment.