fix: sensor named function
This commit is contained in:
parent
453bf8e440
commit
64368ff69d
@ -44,7 +44,7 @@ func (s *Sensor) JSONEncoder(w io.Writer) error {
|
||||
func (s *Sensor) Name() string {
|
||||
if s.SensorName != "" {
|
||||
return s.SensorName
|
||||
} else if *s.WireID != "" {
|
||||
} else if s.WireID != nil {
|
||||
return *s.WireID
|
||||
}
|
||||
return s.SensorID
|
||||
|
Loading…
Reference in New Issue
Block a user