Created interface Port. Rationalized documentation.

This commit is contained in:
Cristian Maglie
2016-04-24 17:19:32 +02:00
parent 88e647775e
commit f5be203394
6 changed files with 56 additions and 38 deletions

View File

@@ -35,7 +35,7 @@ func Example_sendAndReceive() {
DataBits: 8,
StopBits: serial.OneStopBit,
}
port, err := serial.OpenPort(ports[0], mode)
port, err := serial.Open(ports[0], mode)
if err != nil {
log.Fatal(err)
}