summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-12-06 10:30:46 -0800
committerKeith Packard <keithp@keithp.com>2012-12-06 10:30:46 -0800
commit75912f8af04cecc0bbffecb2072d465c3744d4e8 (patch)
tree12c805aec9aa48561e7fa982761bea40f54509a0
parent1f84c0adbfa494ddc7dbe276796d999560be9438 (diff)
altos: Send APRS packets even during ascent
If you're using APRS, presumably you want to watch the rocket going up too. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/core/ao_telemetry.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/ao_telemetry.c b/src/core/ao_telemetry.c
index 4ff98f9b..cfc72e04 100644
--- a/src/core/ao_telemetry.c
+++ b/src/core/ao_telemetry.c
@@ -343,8 +343,7 @@ ao_telemetry(void)
ao_radio_rdf();
}
#if HAS_APRS
- if (ao_rdf &&
- (ao_config.radio_enable & AO_RADIO_ENABLE_APRS) &&
+ if ((ao_config.radio_enable & AO_RADIO_ENABLE_APRS) &&
(int16_t) (ao_time() - ao_aprs_time) >= 0)
{
ao_aprs_time = ao_time() + AO_APRS_INTERVAL_TICKS;
@@ -417,9 +416,6 @@ ao_rdf_set(uint8_t rdf)
ao_radio_rdf_abort();
else {
ao_rdf_time = ao_time() + AO_RDF_INTERVAL_TICKS;
-#if HAS_APRS
- ao_aprs_time = ao_time() + AO_APRS_INTERVAL_TICKS;
-#endif
}
}