summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-10-12 14:01:16 -0700
committerKeith Packard <keithp@keithp.com>2012-10-12 14:01:16 -0700
commit866d10b3faa96f6c5a2c495a2c12a0d2bc8259ef (patch)
treeadec0a16a894d8c6dbc6e198eab9aaef75ee3686 /src
parent68308908afbd1f04b17056d2be408c89b3578c86 (diff)
altos: Elide ao_altitude_to_pa in flight firmware
Only the conversion testing code needs to get back from altitude to pressure, so don't include that code in other environments. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/ao_convert_pa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ao_convert_pa.c b/src/core/ao_convert_pa.c
index 2793b77c..55fe6e7d 100644
--- a/src/core/ao_convert_pa.c
+++ b/src/core/ao_convert_pa.c
@@ -53,6 +53,7 @@ ao_pa_to_altitude(int32_t pa)
return (low + high) >> ALT_SHIFT;
}
+#ifdef AO_CONVERT_TEST
int32_t
ao_altitude_to_pa(int32_t alt)
{
@@ -78,3 +79,4 @@ ao_altitude_to_pa(int32_t alt)
pa = 0;
return pa;
}
+#endif