summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-14 19:19:50 -0700
committerKeith Packard <keithp@keithp.com>2011-08-14 19:19:50 -0700
commit4f64d66295a8f76680af8cfda4650aa4c4f8576d (patch)
treeb827068c1b41a312f838b777704fc19884809a42
parentef7f60df841f1eb22b9cec0d7f68cf2c003d6b30 (diff)
altos: Lost change that reported flight 0 when log memory was full
commit 52ac83fedbfd380d14d4df2e79992bbdfba3552a added coded to check for a full flight log and complain with a special tone. It also reported flight 0 over telemetry, and that part of the patch got lost when moving to the new telemetry format. This patch resurrects that piece. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/ao_telemetry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ao_telemetry.c b/src/ao_telemetry.c
index 15ba4302..8a18ba07 100644
--- a/src/ao_telemetry.c
+++ b/src/ao_telemetry.c
@@ -101,7 +101,7 @@ ao_send_configuration(void)
{
telemetry.generic.type = AO_TELEMETRY_CONFIGURATION;
telemetry.configuration.device = AO_idProduct_NUMBER;
- telemetry.configuration.flight = ao_flight_number;
+ telemetry.configuration.flight = ao_log_full() ? 0 : ao_flight_number;
telemetry.configuration.config_major = AO_CONFIG_MAJOR;
telemetry.configuration.config_minor = AO_CONFIG_MINOR;
telemetry.configuration.apogee_delay = ao_config.apogee_delay;