From 53e3ff1b30927f9ae612ee388b6f4b4d1f16e28e Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Sat, 7 Apr 2018 10:24:02 -0400 Subject: [PATCH] lepton: Add String() in preparation to conn changes Soon most objects will have to implement String. --- devices/lepton/lepton_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devices/lepton/lepton_test.go b/devices/lepton/lepton_test.go index 7077adf..b241a88 100644 --- a/devices/lepton/lepton_test.go +++ b/devices/lepton/lepton_test.go @@ -373,6 +373,10 @@ type spiStream struct { err error } +func (s *spiStream) String() string { + return "spi" +} + func (s *spiStream) Connect(maxHz int64, mode spi.Mode, bits int) (spi.Conn, error) { if maxHz != 20000000 { s.t.Fatal(maxHz)