summaryrefslogtreecommitdiff
path: root/src/ao_telemetry.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-18 18:02:02 -0700
committerKeith Packard <keithp@keithp.com>2011-08-20 11:36:51 -0700
commit6823ad5e48fc0a19791d96f886b5689f88c4311b (patch)
tree9a13b80bfd411ddbe0d9a67239192555bcb7968a /src/ao_telemetry.c
parenta08e7ac8bd3840b699c9a1ffc6b1e115b2b84bad (diff)
altos/altosui: Add ability to disable telemetry/rdf completely
This turns off the telemetry system so that it never transmits telemetry or RDF tones. In idle mode, it will still accept packet mode connections. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_telemetry.c')
-rw-r--r--src/ao_telemetry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ao_telemetry.c b/src/ao_telemetry.c
index 8a18ba07..c7338a58 100644
--- a/src/ao_telemetry.c
+++ b/src/ao_telemetry.c
@@ -180,6 +180,8 @@ ao_telemetry(void)
int16_t delay;
ao_config_get();
+ if (!ao_config.radio_enable)
+ ao_exit();
while (!ao_flight_number)
ao_sleep(&ao_flight_number);