From c868297e0ba3166e750871fb51f6a9c8630d55e1 Mon Sep 17 00:00:00 2001 From: Max Matveev Date: Sat, 6 Feb 2016 19:28:29 -0800 Subject: [PATCH] removed debug println --- host/rpi/onewirebus.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/host/rpi/onewirebus.go b/host/rpi/onewirebus.go index 3c5a8ad..b0426e1 100644 --- a/host/rpi/onewirebus.go +++ b/host/rpi/onewirebus.go @@ -3,28 +3,28 @@ package rpi import ( + "fmt" "os" "sync" "github.com/golang/glog" "github.com/kidoman/embd" "io/ioutil" - "fmt" ) type w1Bus struct { - l byte - busMap map[string]embd.W1Device - Mu sync.Mutex + l byte + busMap map[string]embd.W1Device + Mu sync.Mutex initialized bool } type w1Device struct { - file *os.File - addr string + file *os.File + addr string initialized bool - bus *w1Bus + bus *w1Bus } func NewW1Bus(l byte) embd.W1Bus { @@ -37,7 +37,7 @@ func (b *w1Bus) init() error { } var err error - if _, err = os.Stat("/sys/bus/w1"); os.IsNotExist(err) { + if _, err = os.Stat("/sys/bus/w1"); os.IsNotExist(err) { return err }