Skip to content

Commit

Permalink
fxpakpro: log errors while opening serial port
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDunne committed Jun 20, 2021
1 parent 97afa21 commit 470dfcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snes/fxpakpro/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (d *Driver) openPort(portName string, baudRequest int) (f serial.Port, err
continue
}

//log.Printf("%s: open(%d)\n", portName, baud)
log.Printf("%s: open(name=\"%s\", baud=%d)\n", driverName, portName, baud)
f, err = serial.Open(portName, &serial.Mode{
BaudRate: baud,
DataBits: 8,
Expand All @@ -144,7 +144,7 @@ func (d *Driver) openPort(portName string, baudRequest int) (f serial.Port, err
if err == nil {
break
}
//log.Printf("%s: %v\n", portName, err)
log.Printf("%s: open(name=\"%s\"): %v\n", driverName, portName, err)
}
if err != nil {
return nil, fmt.Errorf("%s: failed to open serial port at any baud rate: %w", driverName, err)
Expand Down

0 comments on commit 470dfcd

Please sign in to comment.