diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-24 23:52:49 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-25 00:07:14 -0700 |
commit | 097c931c979d3652ef8e279ba66bb7ce758f37a3 (patch) | |
tree | 0f857a9e07f6cc59b3252dc9d7e665891bbdfeb3 /src/drivers/ao_packet_slave.c | |
parent | 978c16105dd334a4a2807140dbbcc7f306a6b581 (diff) |
altos: When slave mode first starts, accept any packet
This eliminates the packet sequence matching for the first packet,
allowing outstanding send data to arrive from the master instead of
ignoring packets with data until they match the seqno
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_packet_slave.c')
-rw-r--r-- | src/drivers/ao_packet_slave.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/ao_packet_slave.c b/src/drivers/ao_packet_slave.c index fd5d443e..e45775cb 100644 --- a/src/drivers/ao_packet_slave.c +++ b/src/drivers/ao_packet_slave.c @@ -22,6 +22,7 @@ ao_packet_slave(void) { ao_tx_packet.addr = ao_serial_number; ao_tx_packet.len = AO_PACKET_SYN; + ao_packet_restart = 1; while (ao_packet_enable) { if (ao_packet_recv()) { ao_xmemcpy(&ao_tx_packet.callsign, &ao_rx_packet.packet.callsign, AO_MAX_CALLSIGN); |