diff options
| author | David Phillips <david@yeah.nah.nz> | 2020-12-20 22:22:17 +1300 |
|---|---|---|
| committer | David Phillips <david@yeah.nah.nz> | 2020-12-20 22:22:17 +1300 |
| commit | 75154ebdfbbfe7a04d21d910254058a757d2eef6 (patch) | |
| tree | a4b2276da1b23a88fb15c434a2aaa7d6939c79b0 /util.c | |
| parent | 74dbe89a7574ccfc0238c9ec4f55ac4fd9d40949 (diff) | |
| download | altimeter-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.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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); -} - |
