fixed OneWire bus concurrency & sample

This commit is contained in:
Max Matveev 2016-02-06 00:48:54 -08:00
parent 199e05ae40
commit d8c3f57dc1
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ type w1Device struct {
file *os.File
addr string
initialized bool
bus w1Bus
bus *w1Bus
}
func NewW1Bus(l byte) embd.W1Bus {

View File

@ -24,7 +24,7 @@ func main() {
}
for _, dev := range devs {
fmt.Println("OneWire device: %s", dev)
fmt.Printf("OneWire device: %s\n", dev)
}
w1d, err := w1.Open("28-011572120bff")