Quality of life improvements

This commit is contained in:
Arti Zirk
2023-08-03 11:03:43 +03:00
parent 41725fdc4a
commit a9e008b7f2
2 changed files with 14 additions and 7 deletions

View File

@@ -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
}