Commit 1b3cd80
committed
driver cm32183 fix int rounding error
Previously the als output values at low lux levels
would be rounded by the intermediate calculations
eg output values at low lux were
0, 3, 7....
now, we will get lux values correctly reported
to the nearest lux.
Signed-off-by: Kieran Levin <ktl@frame.work>1 parent 85fdf34 commit 1b3cd80
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments