From 3ecf30d050491a60f4776eb549adbe9f3cddef41 Mon Sep 17 00:00:00 2001 From: Bracken Dawson Date: Wed, 10 Nov 2021 19:53:22 +0000 Subject: [PATCH] The default should be not bogus --- mfrc522/mfrc522.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mfrc522/mfrc522.go b/mfrc522/mfrc522.go index f4722b0..1edd3e0 100644 --- a/mfrc522/mfrc522.go +++ b/mfrc522/mfrc522.go @@ -52,7 +52,7 @@ type configF func(*config) *config // of bytes 0 to 3. 7-byte UIDs are correct regardless of this configuration. func WithBogusUID() configF { return func(c *config) *config { - c.bogusUID = false + c.bogusUID = true return c } } @@ -89,7 +89,7 @@ func NewSPI(spiPort spi.Port, resetPin gpio.PinOut, irqPin gpio.PinIn, configs . defaultTimeout: 30 * time.Second, beforeCall: noop, afterCall: noop, - bogusUID: true, + bogusUID: false, } for _, cf := range configs { cfg = cf(cfg)