This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
7d008bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still reports odd and varying values when calculation is between 100 and 120.
Why not use the (slightly) clearer 120<<10<<12 instead of the magical 503316480. The compiler will resolve it at compile time anyway.
I would rather see
v_x1_u32r = (v_x1_u32r > (100<<10<<12) ? (120<<10<<12) : v_x1_u32r);
7d008bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7d008bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please clarify 'applying offset' . No inference as to actual value should be made if sensor returns "junk"
7d008bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7d008bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion with Bosch and some feedback from users we're revisiting this decision and will cap the humidity to 100%, i.e. v_x1_u32r = (v_x1_u32r > (100<<22) ? (100<<22) : v_x1_u32r);