Skip to content

Commit 90464c4

Browse files
committed
Wait a bit before opening serial port after bossac flash
1 parent 0ee9bb3 commit 90464c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

programmers/bossac/bossac.go

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ func (b *Bossac) Flash(ctx *context.Context, filename string) error {
2828
ports, err := serial.GetPortsList()
2929
ctx.PortName = waitPort(ports, port)
3030

31+
log.Println("Port is online " + ctx.PortName)
32+
time.Sleep(1 * time.Second)
33+
3134
return err
3235
}
3336

0 commit comments

Comments
 (0)