removed debug println

This commit is contained in:
Max Matveev 2016-02-06 19:28:29 -08:00
parent 5c026ec723
commit c868297e0b
1 changed files with 8 additions and 8 deletions

View File

@ -3,28 +3,28 @@
package rpi package rpi
import ( import (
"fmt"
"os" "os"
"sync" "sync"
"github.com/golang/glog" "github.com/golang/glog"
"github.com/kidoman/embd" "github.com/kidoman/embd"
"io/ioutil" "io/ioutil"
"fmt"
) )
type w1Bus struct { type w1Bus struct {
l byte l byte
busMap map[string]embd.W1Device busMap map[string]embd.W1Device
Mu sync.Mutex Mu sync.Mutex
initialized bool initialized bool
} }
type w1Device struct { type w1Device struct {
file *os.File file *os.File
addr string addr string
initialized bool initialized bool
bus *w1Bus bus *w1Bus
} }
func NewW1Bus(l byte) embd.W1Bus { func NewW1Bus(l byte) embd.W1Bus {
@ -37,7 +37,7 @@ func (b *w1Bus) init() error {
} }
var err 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 return err
} }