From 3baabd2f8aa69a986bbb29739e6353d9a95336c5 Mon Sep 17 00:00:00 2001 From: Joshua Allen Date: Sat, 25 Feb 2017 14:34:10 -0500 Subject: float to FLT --- src/survive_config.c | 20 ++++++-------------- src/survive_config.h | 13 +++++++++++-- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/survive_config.c b/src/survive_config.c index 42c2c89..254e52f 100644 --- a/src/survive_config.c +++ b/src/survive_config.c @@ -19,11 +19,11 @@ void config_init() { used_entries = 0; } -void write_float(char* tag, float x) { +void write_float(char* tag, FLT x) { fprintf(config_file, "\"%s\":\"%f\"\n", tag, x); } -void write_float_a(char* tag, float *x, uint8_t count) { +void write_float_a(char* tag, FLT *x, uint8_t count) { uint8_t i = 0; char idx[4]; for (i=0;i