remove bytesize stopbits

This commit is contained in:
zhiqiang feng
2020-12-29 16:31:23 +08:00
parent 0aee912649
commit 93ae291efc
3 changed files with 3 additions and 26 deletions
-4
View File
@@ -35,8 +35,6 @@ var (
cfgFile string
device string
baudrate int
bytesize byte
stopbits byte
lograw bool
dbFile string
@@ -107,8 +105,6 @@ func initConfig() {
logger.Info("Using config file ", zap.String("path", viper.ConfigFileUsed()))
device = viper.GetString("serial.device")
baudrate = viper.GetInt("serial.baudrate")
bytesize = byte(viper.GetInt("serial.bytesize"))
stopbits = byte(viper.GetInt("serial.stopbits"))
lograw = viper.GetBool("serial.lograw")
dbFile = viper.GetString("sqlite.file")
dbInit = viper.GetBool("sqlite.init")