Improve error messages. (#46)

pull/1/head
M-A 10 years ago committed by GitHub
parent 01b45ab697
commit 508e7b6b50

@ -57,7 +57,7 @@ func (s *SPI) Configure(mode spi.Mode, bits int) error {
s.mu.Lock() s.mu.Lock()
defer s.mu.Unlock() defer s.mu.Unlock()
if mode != spi.Mode3 { if mode != spi.Mode3 {
return errors.New("not implemented") return errors.New("bitbang-spi: not implemented")
} }
s.mode = mode s.mode = mode
s.bits = bits s.bits = bits

Loading…
Cancel
Save