summaryrefslogtreecommitdiff
path: root/src/ao_packet_slave.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-19 23:31:20 -0700
committerKeith Packard <keithp@keithp.com>2011-03-19 23:31:20 -0700
commit3f0bc801fd08a613c681504f0d1f9374486a2487 (patch)
tree9d08e512ed9d4377bfaa906a2ada6ee8f2212e67 /src/ao_packet_slave.c
parent5c28b9312d90a3a66016abc641c20bcd852d69f8 (diff)
altos: Configure packet size from send/recv parameters.
Instead of setting the packet size at configuration time, use the provided packet size to the send/recv functions to configure the radio. This eliminates many configuration calls, leaving us with 'RDF' mode and 'packet' mode, the latter working for telemetry and the bi-directional link. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_packet_slave.c')
-rw-r--r--src/ao_packet_slave.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ao_packet_slave.c b/src/ao_packet_slave.c
index e40ddfec..9f14052a 100644
--- a/src/ao_packet_slave.c
+++ b/src/ao_packet_slave.c
@@ -20,7 +20,6 @@
void
ao_packet_slave(void)
{
- ao_radio_set_packet();
ao_tx_packet.addr = ao_serial_number;
ao_tx_packet.len = AO_PACKET_SYN;
while (ao_packet_enable) {
@@ -51,9 +50,6 @@ ao_packet_slave_stop(void)
ao_radio_recv_abort();
ao_delay(AO_MS_TO_TICKS(10));
}
- ao_radio_get();
- ao_radio_set_telemetry();
- ao_radio_put();
}
}