diff options
author | Keith Packard <keithp@gag.com> | 2012-12-28 19:34:33 -0700 |
---|---|---|
committer | Keith Packard <keithp@gag.com> | 2012-12-28 19:34:33 -0700 |
commit | a6e116515f5e4522adbfcd1900885c2a6034b57c (patch) | |
tree | 65d2b2b2c7f64e81d901d40b94e2039eab3eff3d /src/drivers/ao_cc1120.c | |
parent | 57487e78b90465a21c87cf30deb0aeaba0887332 (diff) |
altos: Fix cc1120 debug code to build on megadongle
RDF function had changed, and APRS isn't available on megadongle.
Signed-off-by: Keith Packard <keithp@gag.com>
Diffstat (limited to 'src/drivers/ao_cc1120.c')
-rw-r--r-- | src/drivers/ao_cc1120.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/ao_cc1120.c b/src/drivers/ao_cc1120.c index 3e894f76..63d2f955 100644 --- a/src/drivers/ao_cc1120.c +++ b/src/drivers/ao_cc1120.c @@ -1195,7 +1195,7 @@ static void ao_radio_show(void) { } static void ao_radio_beep(void) { - ao_radio_rdf(RDF_PACKET_LEN); + ao_radio_rdf(); } static void ao_radio_packet(void) { @@ -1231,6 +1231,7 @@ ao_radio_test_recv() } } +#if HAS_APRS #include <ao_aprs.h> static void @@ -1239,13 +1240,16 @@ ao_radio_aprs() ao_packet_slave_stop(); ao_aprs_send(); } +#endif #endif static const struct ao_cmds ao_radio_cmds[] = { { ao_radio_test_cmd, "C <1 start, 0 stop, none both>\0Radio carrier test" }, #if CC1120_DEBUG +#if HAS_APRS { ao_radio_aprs, "G\0Send APRS packet" }, +#endif { ao_radio_show, "R\0Show CC1120 status" }, { ao_radio_beep, "b\0Emit an RDF beacon" }, { ao_radio_packet, "p\0Send a test packet" }, |