[sensors](CrOS/Linux) Fix calculations with offset
This cl fixes calculations done with offset value. Offset value must be added to a raw value and only then multiplied by a scaling value. The formula is the following: processed value = (raw + offset) * scale BUG=661478 Review-Url: https://codereview.chromium.org/2570693004 Cr-Commit-Position: refs/heads/master@{#438132}
Showing
Please register or sign in to comment