diff options
author | Keith Packard <keithp@keithp.com> | 2016-04-25 18:50:58 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-04-25 18:50:58 -0400 |
commit | 565404599fe9edf9ba16aec348eeb19ea31af743 (patch) | |
tree | df18eed1b1583160fbd196e8de2a28b9b97bab56 /src | |
parent | c816bea3536d025568dab313d7c8944a56ba0801 (diff) |
altos: Clear packet queue when starting packet master
This avoids overfilling the packet buffer when
disconnected. Applications using packet mode shouldn't expect that
output be saved across master sessions.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/ao_packet_master.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/ao_packet_master.c b/src/drivers/ao_packet_master.c index 5e440db0..2beda4cb 100644 --- a/src/drivers/ao_packet_master.c +++ b/src/drivers/ao_packet_master.c @@ -117,6 +117,7 @@ ao_packet_forward(void) __reentrant { char c; ao_packet_enable = 1; + ao_packet_tx_used = 0; ao_cmd_white(); flush(); |