diff options
author | Keith Packard <keithp@keithp.com> | 2018-03-23 17:34:23 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-03-23 17:37:02 -0600 |
commit | 58eda1736d8cffa6e3b5afce6f5faabbb179045e (patch) | |
tree | bab946bb6294ac250666fea6cfaab9de972b6495 /src | |
parent | 49fd1fe435b116665b41722c7d14878a62bb3311 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/ao_cc1120.c | 2 |
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 |