mirror of https://github.com/kidoman/embd
removed debug println
This commit is contained in:
parent
5c026ec723
commit
c868297e0b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue