summaryrefslogtreecommitdiff
path: root/src/core/ao_telemetry.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-12-07 17:18:32 -0800
committerKeith Packard <keithp@keithp.com>2012-12-07 17:18:32 -0800
commitb28323ce91d23db5e1c3cbd1309c72aafcfbe235 (patch)
treeb982d32f7b073c470d082e13fc814b7adc36aeff /src/core/ao_telemetry.c
parentf8a704268f0978a39b9c7983e049ef55914f7280 (diff)
altos: Make APRS interval configurable
This provides a separate configuration value for APRS, allowing the interval between APRS reports to vary. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_telemetry.c')
-rw-r--r--src/core/ao_telemetry.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/ao_telemetry.c b/src/core/ao_telemetry.c
index cfc72e04..8d440e15 100644
--- a/src/core/ao_telemetry.c
+++ b/src/core/ao_telemetry.c
@@ -299,7 +299,6 @@ ao_telemetry(void)
#endif
while (ao_telemetry_interval) {
-
#if HAS_APRS
if (!(ao_config.radio_enable & AO_RADIO_DISABLE_TELEMETRY))
#endif
@@ -343,10 +342,10 @@ ao_telemetry(void)
ao_radio_rdf();
}
#if HAS_APRS
- if ((ao_config.radio_enable & AO_RADIO_ENABLE_APRS) &&
+ if (ao_config.aprs_interval != 0 &&
(int16_t) (ao_time() - ao_aprs_time) >= 0)
{
- ao_aprs_time = ao_time() + AO_APRS_INTERVAL_TICKS;
+ ao_aprs_time = ao_time() + AO_SEC_TO_TICKS(ao_config.aprs_interval);
ao_aprs_send();
}
#endif