From 15788bd2f0bdbac7c10eff9a9e35f06c916dcdbe Mon Sep 17 00:00:00 2001 From: Rick Sellens Date: Tue, 21 Jan 2020 12:34:35 -0500 Subject: [PATCH] let the float type be set from the compile command line --- src/NMEA_data.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/NMEA_data.h b/src/NMEA_data.h index e647d4c..120709f 100644 --- a/src/NMEA_data.h +++ b/src/NMEA_data.h @@ -28,7 +28,12 @@ hit, and closer than needed for navigation, so floats can be used to save a little storage. **************************************************************************/ -typedef float nmea_float_t; ///< the type of variables to use for floating point +#ifndef NMEA_FLOAT_T +#define NMEA_FLOAT_T float ///< let float be overidden on command line +#endif +typedef NMEA_FLOAT_T + nmea_float_t; ///< the type of variables to use for floating point + /**************************************************************************/ /*!