From f015c64bb333f1b8147523aeef200f4a7163935e Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Tue, 12 Dec 2017 14:29:57 -0500 Subject: [PATCH] lepton: fix go test on go1.10beta1 --- devices/lepton/lepton.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/lepton/lepton.go b/devices/lepton/lepton.go index 3cafea8..d22adb1 100644 --- a/devices/lepton/lepton.go +++ b/devices/lepton/lepton.go @@ -142,7 +142,7 @@ func New(p spi.Port, i i2c.Bus, cs gpio.PinOut) (*Dev, error) { return nil, err } else if status.CameraStatus != cci.SystemReady { // The lepton takes < 1 second to boot so it should not happen normally. - return nil, fmt.Errorf("lepton: camera is not ready: %s", status) + return nil, fmt.Errorf("lepton: camera is not ready: %#v", status) } if err := d.Init(); err != nil { return nil, err