altos: Toggling telemetry monitoring would replay the telem queue
authorKeith Packard <keithp@keithp.com>
Wed, 18 Jul 2012 06:59:13 +0000 (23:59 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Jul 2012 06:59:13 +0000 (23:59 -0700)
commita698cd68968fc0be5f96b1729cdea2f65d2ccbf6
treed7eac9e8ae5c21986754dcb337887f26f3b6c42a
parent9fd5e3c28fb0fd6da8641e7dd18b9912866d1b75
altos: Toggling telemetry monitoring would replay the telem queue

Using the 'm' command to turn telem off and back on would end up going
around the whole telemetry queue replaying everything there as the
wait loop would exit when disabling monitoring even if the ring was empty.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_monitor.c