The default should be not bogus

pull/24/head
Bracken Dawson 5 years ago
parent 00ed90382f
commit 3ecf30d050
No known key found for this signature in database
GPG Key ID: 8CB332D5A897919D

@ -52,7 +52,7 @@ type configF func(*config) *config
// of bytes 0 to 3. 7-byte UIDs are correct regardless of this configuration. // of bytes 0 to 3. 7-byte UIDs are correct regardless of this configuration.
func WithBogusUID() configF { func WithBogusUID() configF {
return func(c *config) *config { return func(c *config) *config {
c.bogusUID = false c.bogusUID = true
return c return c
} }
} }
@ -89,7 +89,7 @@ func NewSPI(spiPort spi.Port, resetPin gpio.PinOut, irqPin gpio.PinIn, configs .
defaultTimeout: 30 * time.Second, defaultTimeout: 30 * time.Second,
beforeCall: noop, beforeCall: noop,
afterCall: noop, afterCall: noop,
bogusUID: true, bogusUID: false,
} }
for _, cf := range configs { for _, cf := range configs {
cfg = cf(cfg) cfg = cf(cfg)

Loading…
Cancel
Save