Commit 1713e79
Kyle Kearney
Fix incorrect integer division in analogout_read
Replace with multiplication by the floating point reciprocal, to
produce a floating point result while being more efficient than
floating point division.
Addresses the issue raised by kjbracey-arm in
#11324 (review)1 parent 83fca60 commit 1713e79
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments