fix stopbits bytesize

This commit is contained in:
zhiqiang feng
2020-12-29 16:38:53 +08:00
parent a3d0cf998b
commit a567e10481
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ var (
const readDuration = 500 * time.Millisecond
// OpenPort open serial port
func OpenPort(device string, baudrate int, bytesize byte, stopbits byte) error {
func OpenPort(device string, baudrate int) error {
Log.Info("opening serial device ",
zap.String("port", device),
zap.Int("baudrate", baudrate))