summaryrefslogtreecommitdiff
path: root/src/ao_flight.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-10-16 12:56:45 +0900
committerKeith Packard <keithp@keithp.com>2009-10-16 12:56:45 +0900
commitd709a0688eff84e25e24d755850ef045d6b0c3de (patch)
treee5aa394224f57a3c324a6360419b420421680003 /src/ao_flight.c
parent69b6f6bb465163cf767bb68e0e4a716d8ad2b39c (diff)
Save some DSEG space by marking cmd functions __reentrant
__reentrant causes the compiler to place args and locals on the stack instead of in the data segment. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_flight.c')
-rw-r--r--src/ao_flight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ao_flight.c b/src/ao_flight.c
index ec89e7c2..c43d0711 100644
--- a/src/ao_flight.c
+++ b/src/ao_flight.c
@@ -458,7 +458,7 @@ ao_flight(void)
#define AO_VEL_COUNT_TO_MS(count) ((int16_t) ((count) / 2700))
static void
-ao_flight_status(void)
+ao_flight_status(void) __reentrant
{
printf("STATE: %7s accel: %d speed: %d altitude: %d main: %d\n",
ao_state_names[ao_flight_state],