Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
647a90c0f2 | ||
|
92469f11b2 | ||
a75aeeb8f9 |
2
.drone.yml
Normal file
2
.drone.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
kind: template
|
||||
load: docker-multiarch.yaml
|
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@
|
||||
|
||||
all: build
|
||||
|
||||
GOBUILDLDFLAGS="-X main.Version=`git describe --dirty`"
|
||||
GOBUILDLDFLAGS="-X main.Version=`git describe --always --dirty`"
|
||||
#GOBUILDLDFLAGS="-X main.Version=`git describe --dirty` -linkmode 'external' -extldflags '-static'"
|
||||
|
||||
build:
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user