aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2020-12-20 22:22:17 +1300
committerDavid Phillips <david@yeah.nah.nz>2020-12-20 22:22:17 +1300
commit75154ebdfbbfe7a04d21d910254058a757d2eef6 (patch)
treea4b2276da1b23a88fb15c434a2aaa7d6939c79b0 /util.c
parent74dbe89a7574ccfc0238c9ec4f55ac4fd9d40949 (diff)
downloadaltimeter-75154ebdfbbfe7a04d21d910254058a757d2eef6.tar.xz
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.
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 0 insertions, 7 deletions
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);
-}
-