summaryrefslogtreecommitdiffstats
path: root/src/canutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/canutil')
-rw-r--r--src/canutil/read.c2
-rw-r--r--src/canutil/read.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/canutil/read.c b/src/canutil/read.c
index 3931721a..b662e9bd 100644
--- a/src/canutil/read.c
+++ b/src/canutil/read.c
@@ -23,7 +23,7 @@ float bitfield_parse_float(const uint8_t source[], const uint16_t source_length,
return raw * factor + offset;
}
-float bitfield_parse_bool(const uint8_t source[], const uint16_t source_length,
+bool bitfield_parse_bool(const uint8_t source[], const uint16_t source_length,
const uint8_t bit_offset, const uint8_t bit_size, const float factor,
const float offset) {
float value = bitfield_parse_float(source, source_length, bit_offset,
diff --git a/src/canutil/read.h b/src/canutil/read.h
index 733e3509..86fea785 100644
--- a/src/canutil/read.h
+++ b/src/canutil/read.h
@@ -70,7 +70,7 @@ bool eightbyte_parse_bool(uint64_t source, uint8_t bit_offset, uint8_t bit_size,
*
* Returns false if the value was 0, otherwise true.
*/
-float bitfield_parse_float(const uint8_t source[], const uint16_t source_size,
+bool bitfield_parse_bool(const uint8_t source[], const uint16_t source_size,
const uint8_t bit_offset, const uint8_t bit_size, const float factor,
const float offset);