summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-03-23 17:34:23 -0600
committerKeith Packard <keithp@keithp.com>2018-03-23 17:37:02 -0600
commit58eda1736d8cffa6e3b5afce6f5faabbb179045e (patch)
treebab946bb6294ac250666fea6cfaab9de972b6495
parent49fd1fe435b116665b41722c7d14878a62bb3311 (diff)
altos/ao_cc1120: Only call ao_packet_slave_stop when HAS_SLAVE
Don't try to disable packet slave mode when the product doesn't support packet slave mode. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/drivers/ao_cc1120.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/ao_cc1120.c b/src/drivers/ao_cc1120.c
index efe5f996..2f091485 100644
--- a/src/drivers/ao_cc1120.c
+++ b/src/drivers/ao_cc1120.c
@@ -1447,7 +1447,9 @@ ao_radio_test_recv(void)
static void
ao_radio_aprs(void)
{
+#if PACKET_HAS_SLAVE
ao_packet_slave_stop();
+#endif
ao_aprs_send();
}
#endif