From 75154ebdfbbfe7a04d21d910254058a757d2eef6 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 20 Dec 2020 22:22:17 +1300 Subject: Use float-enabled printf implementation I hadn't realised there is a float-enabled printf implementation in AVR libc, so let's use that instead of our own hack. --- util.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 794eea7..bd3f71f 100644 --- a/util.c +++ b/util.c @@ -16,10 +16,3 @@ void blank_to_eol(char *line, size_t len) } line[i] = '\0'; } - -void split_float(float input, int *integer_part, float *float_part) -{ - *integer_part = (int)input; - *float_part = fabs(input - *integer_part); -} - -- cgit v1.1