fix stopbits bytesize
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user