From dbc038d5318d53ac7c14e26386588c48c621a591 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 13 九月 2024 11:51:45 +0800
Subject: [PATCH] fix config
---
config/config.go | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/config/config.go b/config/config.go
index 31ebd4d..b083bc0 100644
--- a/config/config.go
+++ b/config/config.go
@@ -72,7 +72,7 @@
DevName string `mapstructure:"dev"`
Baud int `mapstructure:"baud"`
EPC string `mapstructure:"epc"`
- Position uint8 `mapstructure:"postion"`
+ Position uint8 `mapstructure:"position"`
}
type rateLimit struct {
@@ -126,6 +126,7 @@
v.UnmarshalKey("nvcs", NVCSConf)
v.UnmarshalKey("rfid", RFIDConf)
v.UnmarshalKey("image", ImageConf)
+ v.UnmarshalKey("systime", SysTimeConf)
if LogConf.Level == "" {
LogConf.Level = "info"
--
Gitblit v1.8.0