diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-06 21:00:52 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-16 15:57:37 -0700 |
commit | 2d41358c80f2eb8b6e98d699149bb941a6671475 (patch) | |
tree | fc01bc1e79f7750719404801f2505aaeb0c569e3 /src/ao_packet_slave.c | |
parent | 1e56ed44e562f808addfd76bfb352f981db94094 (diff) |
altos: Start with packet slave running. Turn off in pad mode.
Instead of turning slave mode on in idle mode, start with it running
and disable it in pad mode instead. This means packet mode is
available in startup mode too.
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, 4 insertions, 0 deletions
diff --git a/src/ao_packet_slave.c b/src/ao_packet_slave.c index 39d04bbb..eb456dab 100644 --- a/src/ao_packet_slave.c +++ b/src/ao_packet_slave.c @@ -26,6 +26,9 @@ ao_packet_slave(void) while (ao_packet_enable) { if (ao_packet_recv()) { memcpy(&ao_tx_packet.callsign, &ao_rx_packet.packet.callsign, AO_MAX_CALLSIGN); +#if HAS_FLIGHT + ao_flight_force_idle = TRUE; +#endif ao_packet_send(); } } @@ -60,4 +63,5 @@ ao_packet_slave_init(void) ao_add_stdio(ao_packet_pollchar, ao_packet_putchar, NULL); + ao_packet_slave_start(); } |