将指针配置name也设定为可配置

This commit is contained in:
2024-11-21 17:29:32 +08:00
parent a923be10c4
commit 2886009d4d
4 changed files with 6 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ func PushCard(ctx context.Context) leaf.HandlerFunc {
gv, _ := json.Marshal(group)
zap.S().Info("发卡指针初始化:", string(gv))
device, err := card_device.New("gpiochip0", group)
device, err := card_device.New(group)
if err != nil {
zap.S().Panicln("初始化发卡器失败: ", err)
}