Fix w1-therm log messages
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
4ef93fb6cf
commit
4edfc7584e
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ func logic() error {
|
|||
for _, mod := range []string{
|
||||
"kernel/drivers/w1/wire.ko",
|
||||
"kernel/drivers/w1/masters/w1-gpio.ko",
|
||||
"kernel/drivers/w1/slaves/w1-therm.ko",
|
||||
"kernel/drivers/w1/slaves/w1_therm.ko",
|
||||
} {
|
||||
if err := loadModule(mod); err != nil && !os.IsNotExist(err) {
|
||||
return err
|
||||
|
@ -36,9 +36,9 @@ func logic() error {
|
|||
dev := "w1_bus_master1"
|
||||
target, err := checkOneWireInterface(dev)
|
||||
if err != nil {
|
||||
log.Printf("Bluetooth interface %v not found.", target)
|
||||
log.Printf("OneWire interface %v not found.", target)
|
||||
} else {
|
||||
fmt.Printf("Bluetooth device %v: %v\n", dev, target)
|
||||
fmt.Printf("OneWire device %v: %v\n", dev, target)
|
||||
}
|
||||
|
||||
// gokrazy should not supervise this process even when manually started.
|
||||
|
|
Loading…
Reference in a new issue