mirror of
https://github.com/kidoman/embd
synced 2025-07-03 03:47:33 +02:00
- use glog instead of Debug flag
- use glog instead of log - make code conform to the Go code guidelines
This commit is contained in:
parent
ca17879e6e
commit
9ab49745bc
23 changed files with 554 additions and 703 deletions
|
@ -14,8 +14,6 @@ type WaterSensor struct {
|
|||
|
||||
initialized bool
|
||||
mu sync.RWMutex
|
||||
|
||||
Debug bool
|
||||
}
|
||||
|
||||
// New creates a new WaterSensor struct
|
||||
|
@ -48,9 +46,7 @@ func (d *WaterSensor) IsWet() (bool, error) {
|
|||
return false, err
|
||||
}
|
||||
|
||||
if d.Debug {
|
||||
glog.Infof("watersensor: reading")
|
||||
}
|
||||
glog.V(1).Infof("watersensor: reading")
|
||||
|
||||
value, err := d.Pin.Read()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue