Quality of life improvements
This commit is contained in:
@@ -90,14 +90,14 @@ func (w *WiegandHW) GetCardUid() (uint64, error) {
|
||||
func (w *WiegandHW) wiegandAEvent(evt gpiod.LineEvent) {
|
||||
w.bitTimeoutTimer.Reset(w.bitTimeout)
|
||||
w.bits[w.bitNr] = true
|
||||
fmt.Printf("1")
|
||||
//fmt.Printf("1")
|
||||
w.bitNr += 1
|
||||
}
|
||||
|
||||
func (w *WiegandHW) wiegandBEvent(evt gpiod.LineEvent) {
|
||||
w.bitTimeoutTimer.Reset(w.bitTimeout)
|
||||
w.bits[w.bitNr] = false
|
||||
fmt.Printf("0")
|
||||
//fmt.Printf("0")
|
||||
w.bitNr += 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user