diff options
Diffstat (limited to 'src/canutil')
-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 09e6caa3..5b91aaf9 100644 --- a/src/canutil/write.c +++ b/src/canutil/write.c @@ -12,7 +12,7 @@ uint64_t eightbyte_encode_float(float value, uint8_t bit_offset, uint8_t bit_siz raw += 0.5; } uint64_t result = 0; - if(!set_bit_field(&result, (uint64_t)raw, bit_offset, bit_size)) { + if(!eightbyte_set_bitfield(&result, (uint64_t)raw, bit_offset, bit_size)) { // debug("%f will not fit in a %d bit field", value, bit_size); } return result; |