Replies: 1 comment 1 reply
-
@kmeurink do you mean, this? https://docs.zephyrproject.org/latest/doxygen/html/structsensor__value.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently working on creating a driver that provides one of its measured values in mili Celsius.
I wanted to use the helper methods in the sensor file to convert the sensor_value struct provided by this driver to a float.
However it seems these methods assume the precision is in micro units.
This is not described anywhere, so it is quite easy to make mistakes using these functions. I would therefore say it is a bug, can anyone confirm that this is indeed overlooked behaviour?
Or in the case that there is documentation somewhere that requires the precision of measured signal to be on the micro unit level, where would this be located?
Beta Was this translation helpful? Give feedback.
All reactions