fix: sensor named function
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user