altoslib: Drop telemetry packets processed while monitoring is disabled
authorKeith Packard <keithp@keithp.com>
Sun, 8 Feb 2015 01:08:03 +0000 (17:08 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 8 Feb 2015 01:08:03 +0000 (17:08 -0800)
commitc0ce45100dd205f59cd84465138c74d9b31df0bb
treef743025ea75fb3507da19d7126d5bd0353a65407
parent8a2be4d36a3b116d82529805430c5fb665688267
altoslib: Drop telemetry packets processed while monitoring is disabled

A lag between the thread queuing telemetry packets and one pulling
them out can result in stale telemetry data being returned to the
reader. Fix this by dropping telemetry read while monitoring is disabled.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosLink.java
altoslib/AltosTelemetryReader.java