diff options
author | Keith Packard <keithp@keithp.com> | 2010-08-07 00:40:59 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-08-07 00:40:59 -0400 |
commit | 4738cb2fc639adb1d9237e6c903479f0690dd81a (patch) | |
tree | 5664b86fe4c3a8d94bf426b6f5cdd8e8d3fa429a /src/ao_packet_slave.c | |
parent | b7699a5907e64bc7547fcc27e73f4a35bbaabfff (diff) |
altos: add callsign to packet mode, increase payload to 64 bytes
Untested, but it 'should' work. Need to add callsign setting to packet
mode users.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_packet_slave.c')
-rw-r--r-- | src/ao_packet_slave.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ao_packet_slave.c b/src/ao_packet_slave.c index e03ebdc3..9b78767f 100644 --- a/src/ao_packet_slave.c +++ b/src/ao_packet_slave.c @@ -27,8 +27,10 @@ ao_packet_slave(void) ao_tx_packet.len = AO_PACKET_SYN; while (ao_packet_enable) { status = ao_packet_recv(); - if (status & AO_DMA_DONE) + if (status & AO_DMA_DONE) { + memcpy(&ao_tx_packet.callsign, &ao_rx_packet.packet.callsign, AO_MAX_CALLSIGN); ao_packet_send(); + } } ao_exit(); } |