diff --git a/wiegand.go b/wiegand.go index 97c9f96..255155e 100644 --- a/wiegand.go +++ b/wiegand.go @@ -113,14 +113,14 @@ func WiegandSetup(a int, b int, bitTimeout time.Duration, solenoid int) *Wiegand } wa, err := gpiod.RequestLine("gpiochip0", a, gpiod.AsInput, - gpiod.WithFallingEdge, gpiod.WithEventHandler(wiegand.wiegandAEvent)) + gpiod.WithFallingEdge, gpiod.LineBiasPullUp, gpiod.WithEventHandler(wiegand.wiegandAEvent)) if err != nil { panic(err) } wiegand.aLine = wa wb, err := gpiod.RequestLine("gpiochip0", b, gpiod.AsInput, - gpiod.WithFallingEdge, gpiod.WithEventHandler(wiegand.wiegandBEvent)) + gpiod.WithFallingEdge, gpiod.LineBiasPullUp, gpiod.WithEventHandler(wiegand.wiegandBEvent)) if err != nil { panic(err) }