summaryrefslogtreecommitdiff
path: root/src/core/ao_convert.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-10 20:32:31 -0700
committerKeith Packard <keithp@keithp.com>2012-07-10 20:32:31 -0700
commitaafa8859ecb27383f697b98f6991643b44f4721a (patch)
treeba6e7a61539bf9f6253b184b23882829e31a3758 /src/core/ao_convert.c
parenta60c5a728530e4659a6750d8d5b87000735d4531 (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.c')
-rw-r--r--src/core/ao_convert.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ao_convert.c b/src/core/ao_convert.c
index 0969f107..aa9b5f48 100644
--- a/src/core/ao_convert.c
+++ b/src/core/ao_convert.c
@@ -41,6 +41,7 @@ ao_pres_to_altitude(int16_t pres) __reentrant
(int32_t) altitude_table[o+1] * part + (ALT_FRAC_SCALE >> 1)) >> ALT_FRAC_BITS;
}
+#if AO_NEED_ALTITUDE_TO_PRES
int16_t
ao_altitude_to_pres(int16_t alt) __reentrant
{
@@ -66,7 +67,9 @@ ao_altitude_to_pres(int16_t alt) __reentrant
pres = 0;
return (int16_t) pres;
}
+#endif
+#if 0
int16_t
ao_temp_to_dC(int16_t temp) __reentrant
{
@@ -83,3 +86,4 @@ ao_temp_to_dC(int16_t temp) __reentrant
ret = ((temp - 19791) * 1012L) >> 16;
return ret;
}
+#endif