Skip to content

Commit 370de5c

Browse files
author
Alberto Iannaccone
committed
increase flasher read timeout to 30 seconds
1 parent 0630fc2 commit 370de5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/flasher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func OpenSerial(portName string) (serial.Port, error) {
2929
}
3030
log.Printf("Opened the serial port with baud rate %d", baudRate)
3131

32-
if err := port.SetReadTimeout(10 * time.Second); err != nil {
32+
if err := port.SetReadTimeout(30 * time.Second); err != nil {
3333
log.Fatalf("Could not set timeout on serial port: %s", err)
3434
return nil, err
3535
}

0 commit comments

Comments
 (0)