mrk-its / esphome-canopen

Apache License 2.0
21 stars 5 forks source link

Sensor state scaling should support NAN values. #12

Open mrk-its opened 1 week ago

mrk-its commented 1 week ago

The NaN (not a number) float value is initial value of the sensor. When float scaling is enabled (to 1-byte / 2 byte uint) we don't handle NAN values, so invalid sensor value is stored in object dictionary (and may be sent over the wire when such sensor shares TPDO with other entities)