altos: Fix ability to disable telemetry by setting interval to 0
authorKeith Packard <keithp@keithp.com>
Thu, 11 Sep 2014 22:00:25 +0000 (15:00 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 11 Sep 2014 22:00:25 +0000 (15:00 -0700)
commit0cedc27e22a9fbc9ccfe1b403c84d728bb23220d
treeea74f5e8799b2bb1cc4b2e96572172b1f90f28f4
parent6dafd7bf947d892e430cd565eb92a3366abb3604
altos: Fix ability to disable telemetry by setting interval to 0

For non-zero telemetry intervals, the radio code limits the value
based on the data rate. However, a zero interval means that telemetry
should be entirely disabled, so that value should be left alone when
checking.

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