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)
committerBdale Garbee <bdale@gag.com>
Sat, 13 Sep 2014 17:26:13 +0000 (11:26 -0600)
commit800f3377b1a374ad5cf826aa897efdcb08059040
tree9a93a8f25fdf07b198bed65705629174674ea3c5
parent793588e218102204e69755a16bc32ea5c67f29c7
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