diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-03-05 15:39:52 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-03-05 15:39:52 -0500 |
commit | 500668d68145e0afb7a08e5757bf22a6dd7d74bb (patch) | |
tree | d0fc8c190aad3514594ae1b2f0a0be254dfb9f50 /src/canutil/write.c | |
parent | 7f1d5473842361f97fef886bc4e98949ecf853b6 (diff) |
Make float_to_fixed_point a public function.
Diffstat (limited to 'src/canutil/write.c')
-rw-r--r-- | src/canutil/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/canutil/write.c b/src/canutil/write.c index 3b3ae25d..7f3a3e04 100644 --- a/src/canutil/write.c +++ b/src/canutil/write.c @@ -2,7 +2,7 @@ #include <bitfield/bitfield.h> #include <bitfield/8byte.h> -static uint64_t float_to_fixed_point(const float value, const float factor, +uint64_t float_to_fixed_point(const float value, const float factor, const float offset) { float raw = (value - offset) / factor; if(raw > 0) { |