altos: Clear packet queue when starting packet master
authorKeith Packard <keithp@keithp.com>
Mon, 25 Apr 2016 22:50:58 +0000 (18:50 -0400)
committerKeith Packard <keithp@keithp.com>
Mon, 25 Apr 2016 22:50:58 +0000 (18:50 -0400)
commit565404599fe9edf9ba16aec348eeb19ea31af743
treedf18eed1b1583160fbd196e8de2a28b9b97bab56
parentc816bea3536d025568dab313d7c8944a56ba0801
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>
src/drivers/ao_packet_master.c