let the float type be set from the compile command line

This commit is contained in:
Rick Sellens 2020-01-21 12:34:35 -05:00
parent af963a4846
commit 15788bd2f0
1 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,12 @@
hit, and closer than needed for navigation, so floats can be used to save a hit, and closer than needed for navigation, so floats can be used to save a
little storage. 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
/**************************************************************************/ /**************************************************************************/
/*! /*!