diff options
author | Keith Packard <keithp@keithp.com> | 2012-07-10 20:32:31 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-10 20:32:31 -0700 |
commit | aafa8859ecb27383f697b98f6991643b44f4721a (patch) | |
tree | ba6e7a61539bf9f6253b184b23882829e31a3758 /src/core/ao_convert_test.c | |
parent | a60c5a728530e4659a6750d8d5b87000735d4531 (diff) |
altos: Save some memory.
A few minor space savings in ao_cmd.c and ao_config.c. Don't build
unused conversion functions ao_altitude_to_pres and ao_temp_to_dC
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_convert_test.c')
-rw-r--r-- | src/core/ao_convert_test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ao_convert_test.c b/src/core/ao_convert_test.c index e2c28b73..87e76841 100644 --- a/src/core/ao_convert_test.c +++ b/src/core/ao_convert_test.c @@ -17,14 +17,15 @@ #include <stdint.h> #define AO_CONVERT_TEST +#define AO_NEED_ALTITUDE_TO_PRES 1 #include "ao_host.h" #include "ao_convert.c" #define STEP 1 -static inline i_abs(int i) { return i < 0 ? -i : i; } +static inline int i_abs(int i) { return i < 0 ? -i : i; } -main () +int main (int argc, char **argv) { int i; int16_t p_to_a, p_to_a_to_p; |