将指针配置name也设定为可配置
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user