summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-04-04 19:54:46 -0700
committerKeith Packard <keithp@keithp.com>2010-04-04 19:54:46 -0700
commit6251e89c6eea655769f77bc18e98e79c99cf3cad (patch)
tree401f71c2109110c115e7ce03a8bf456b0bd63a7a /src
parentb0b99f30c4e00689e9faceb363a5c7284541c6be (diff)
Don't abort the radio when enabling telemetry monitoring
If telemetry monitoring is already on, then there isn't any point, and if it's not on, then presumably there isn't any radio work to abort. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/ao_monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ao_monitor.c b/src/ao_monitor.c
index 628b6e67..f2f3fc2e 100644
--- a/src/ao_monitor.c
+++ b/src/ao_monitor.c
@@ -80,7 +80,8 @@ ao_set_monitor(uint8_t monitoring)
{
ao_monitoring = monitoring;
ao_wakeup(&ao_monitoring);
- ao_radio_abort();
+ if (!ao_monitoring)
+ ao_radio_abort();
}
static void